mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* fix(transfer): allow DeleteServer regardless of server state AWS's DeleteServer API has no state precondition: its error list has no ConflictException, and terraform-provider-aws's resourceServerDelete calls DeleteServer directly without stopping the server first. The OFFLINE-only guard made every terraform destroy of a running aws_transfer_server fail with a 409 that real AWS never returns. CreateServer's ONLINE default is left as is: it matches real AWS, where a new server transitions STARTING -> ONLINE automatically without a StartServer call, and terraform's waitServerCreated treats OFFLINE as an unexpected state that fails apply immediately. Added an integration test locking in both behaviors. Fixes #2802 * fix(transfer): return Domain from DescribeServer and ListServers Real AWS always reports a server's Domain (default S3). Floci dropped the field on CreateServer and never echoed it, so terraform-provider-aws read back "" into its ForceNew domain attribute (default "S3") and every re-plan of an aws_transfer_server proposed a replacement: + domain = "S3" # forces replacement Store Domain on create, defaulting to S3 like AWS, and include it in DescribeServer and ListServers. Needed for the resource to survive the whole-config re-plan assertion in the terraform compat suite. * test(compat): add aws_transfer_server to the terraform and opentofu suites The resource was pulled from both fixtures while #1834 iterated because DeleteServer 409'd on a running server (#2802). With that fixed, put it back: the server is never stopped, so terraform destroy hits DeleteServer while it is ONLINE, and the existing whole-config re-plan test guards the DescribeServer round trip. * docs(transfer): drop the OFFLINE precondition from DeleteServer