-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add s3_storage_options configuration block for aws_transfer_server #36664
feat: Add s3_storage_options configuration block for aws_transfer_server #36664
Conversation
Community NoteVoting for Prioritization
For Submitters
|
b88d525
to
e8c0d62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccTransfer_serial/Server/basic\|TestAccTransfer_serial/Server/S3StorageOptions' PKG=transfer
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/transfer/... -v -count 1 -parallel 20 -run=TestAccTransfer_serial/Server/basic\|TestAccTransfer_serial/Server/S3StorageOptions -timeout 360m
=== RUN TestAccTransfer_serial
=== PAUSE TestAccTransfer_serial
=== CONT TestAccTransfer_serial
=== RUN TestAccTransfer_serial/Server
=== RUN TestAccTransfer_serial/Server/basic
=== RUN TestAccTransfer_serial/Server/S3StorageOptions
--- PASS: TestAccTransfer_serial (402.04s)
--- PASS: TestAccTransfer_serial/Server (402.04s)
--- PASS: TestAccTransfer_serial/Server/basic (208.22s)
--- PASS: TestAccTransfer_serial/Server/S3StorageOptions (193.82s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/transfer 413.321s
@acwwat Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.44.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR adds the
s3_storage_options
configuration block to theaws_transfer_server
resource.IMPLEMENTATION CAVEAT
The
s3_storage_options
configuration block and its arguments are set asOptional
andComputed
, which means if the block is not provided Terraform will store the value read from the API into the state. Originally I avoided usingComputed
thinking that omitting the block from the update operation will remove the settings, however the UpdateServer API does NOT remove the settings or setDirectoryListingOptmization
toDISABLED
.Consequently, if user set
s3_storage_options
anddirectory_listing_optimization
toENABLED
, the only way to disable it is to explicitly setdierctory_listing_optimization
toDISABLED
. I am not sure if there are better ways to address this, in which case I am option to suggestions.Relations
Closes #35851
References
Referred to CreateServer for specs and descriptions.
Output from Acceptance Testing