-
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
S3 bucket issue: Can't configure a value for "versioning": its value will be decided automatically based on the result of applying this configuration. #23125
Comments
The versioning argument is read-only as of version 4.0 of the Terraform AWS Provider. See the aws_s3_bucket_versioning resource for configuration details. |
is there any kind of pre-release mailing list in order not to get the surprises like this? |
I am getting multiple errors:
|
yes we also experiencing this ...looks like it started post release version 4.0.0 |
for anyone impacted by this, it might be worth upvoting this issue: #23106 👍 |
Saying "use terraform import" puts those with hundreds of buckets in a tough spot. |
It should be noted that I counted ~12/13 possible arguments that may require running Some fun math for you, if you have 100 buckets you need to refactor, and you use a bunch of the various configuration (versioning, logging, acls, etc.) you're looking at potentially 700+ |
we were able to temporary fix this by pinning module to exact last working version of provider.
|
Holy carp, they can't seriously think that this is an acceptable path forward. |
Props to @tarunptala for this one. Verified work-around works great till this issue is fixed. |
Hey y'all 👋 Thank you for taking the time to raise this, and for the discussion around it. It looks like this is a duplicate (to some degree; it's slightly different, but has the same root cause) of #23106. We like to keep discussions centralized where possible, so we'll close this one in favor of #23106 for now. If you feel we've done this in error, please do let us know. |
Since versioning is now read only, update your configuration to use the aws_s3_bucket_versioning resource and remove versioning and its nested arguments in the aws_s3_bucket resource:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform CLI and Terraform AWS Provider Version
terraform script is failing with below error which is running in the provider version : 3.74.1. I have done no change in code base since last 1 year. Facing issue with new release version 4.0.0
Affected Resource(s)
Terraform Configuration Files
Code:
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Terraform applies policy successfully. And create s3 buckets.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: