-
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
[Bug]: Migrate aws_s3_object from provider 4 to 5 is not working at first apply #31633
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @quentin9696 👋 Thank you for taking the time to raise this! So that we have the information necessary to look into this, can you supply debug logs (redacted as needed) as well? |
Here's the logs from a 5.0.1 provider which generate the error for me. terraform plan:
terraform apply:
|
I have the same problem. |
Relates #27197. |
This functionality has been released in v5.14.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! |
Running |
Any long term solution for this? |
yes. #31633 (comment) |
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 Core Version
1.4.6
AWS Provider Version
5.0.1, 4.67.0
Affected Resource(s)
aws_s3_object
Expected Behavior
Nothing to do to upgrade from provider
4
to5
Actual Behavior
Bump the provider version from
4
to5
trigger a change in the plan:And the apply trigger an error:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform init
terraform apply
version = ">= 4.0, < 5"
toversion = "> 5"
)terraform init -upgrade
terraform apply
terraform apply
No changes. Your infrastructure matches the configuration.
Debug Output
No response
Panic Output
No response
Important Factoids
I think the provider should upgrade the state internally instead of waiting for the double update
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: