-
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]: aws_batch_job_definition: After updating the resource the revision, id and arn attributes still show the previous revision #36824
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Potentially related - the First apply:
Second apply:
|
I am also getting this bug. It seems that in version 5.43.0 it does |
Just looking at this again, from what I can see the ARN, id & revision attributes in the state are correct after an update but the ARN, id and revision outputs still reflect the previous revision. |
I am also seeing this in 5.45.0. |
I'm also seeing this issue in 5.46.0 |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.47.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. |
Same as #36865
Relates to #36894
Results from #35149?
Terraform Core Version
1.7.5
AWS Provider Version
5.44.0
Affected Resource(s)
Expected Behavior
Each update to the job definition created a new revision of the job definition and the attributes should reflect the new revision not the previous one. For example we would use the ARN attribute in an EventBridge target and we want to update that to target the latest active revision.
This worked correctly in v5.43.0, it looks like something may have changed on the back of the introduction of [deregister_on_new_revision] in 5.44?(https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/batch_job_definition#deregister_on_new_revision)
Actual Behavior
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: