-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Workspace block aws_s3_bucket_versioning] #23510
Comments
Hey @lucasp0r 👋 Thank you for taking the time to raise this! So that we have all of the necessary information in order to look into this, can you update the issue description to include the rest of the information requested in the template (particularly debug logs, redacted as necessary)? I also attempted to reproduce this with the Terraform configuration supplied and was not able to reproduce the error; can you expand a bit more on the steps to reproduce? |
@justinretzolk I also got this error, not while creating the resource but then retrieving provider information during a second It looks like this is only happening while not using the Sorry, it is kinda difficult to give you debug commands because everything is happening in CI pipelines. I will try to give you more details soon. |
Actually, I don't have more logs, the bug is that. Resume: if i got any problem with my workspace like lock or something, after that if i try to apply or destroy this resource i got error. |
I received the same error. I also use workspaces and the error occurred after the S3 bucket was deleted outside of Terraform. During resource refresh I also got |
I was having the same error. This is probably because you deleted your resource manually. In this case, you probably deleted the S3 bucket that was created by Terraform. Try manually add an S3 bucket with the same bucket name and redo it. See how it goes. |
Hi! I am having the same issue when applying from scratch. If I run an apply targeting only the bucket and then re-apply everything, it works. |
Pretty sure this behavior is due to the fact that the code behind |
Manually adding the s3 bucket with versioning enable works, yes. I see this is closed now but I'm still getting the same error. Is there an open discussion for aws_s3_bucket_versioning status? |
HI @ingletkimi , the fix hasn't been released just yet, will likely be available later today with
Not that I am aware of. There is this issue #23809 that perhaps is related but if you have a separate feature request or bug you'd like add, feel free to create a new issue in the repo. |
This functionality has been released in v4.12.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Hello Everyone,
After a few hours to understand how I got an error in this resource, I understood what happens.
If I use my workspace and I got lock-in that workspace, if unblock that, and I try to apply or destroy these resources, I got an error.
So I tried to simulate this in others services like EKS, ECS, ALB, ROUTE53 etc.. and more of that. Same process, lock-in in my workspace, unblock that, and apply/destroy, but works properly in that resources. So I just got a problem with aws_s3_bucket_versioning
Is a kind of strange like this is a new resource in provider 4.0.0 +, maybe a bug? Someone can help?
Code
Error
Community Note
Terraform CLI and Terraform AWS Provider Version
Latest version for both
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply/destroy
References
The text was updated successfully, but these errors were encountered: