-
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
Fix state machine update bug #38657
Fix state machine update bug #38657
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @AnitaErnszt 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
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=TestAccSFNStateMachine_' PKG=sfn
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/sfn/... -v -count 1 -parallel 20 -run=TestAccSFNStateMachine_ -timeout 360m
=== RUN TestAccSFNStateMachine_createUpdate
=== PAUSE TestAccSFNStateMachine_createUpdate
=== RUN TestAccSFNStateMachine_expressUpdate
=== PAUSE TestAccSFNStateMachine_expressUpdate
=== RUN TestAccSFNStateMachine_standardUpdate
=== PAUSE TestAccSFNStateMachine_standardUpdate
=== RUN TestAccSFNStateMachine_nameGenerated
=== PAUSE TestAccSFNStateMachine_nameGenerated
=== RUN TestAccSFNStateMachine_namePrefix
=== PAUSE TestAccSFNStateMachine_namePrefix
=== RUN TestAccSFNStateMachine_publish
=== PAUSE TestAccSFNStateMachine_publish
=== RUN TestAccSFNStateMachine_tags
=== PAUSE TestAccSFNStateMachine_tags
=== RUN TestAccSFNStateMachine_tracing
=== PAUSE TestAccSFNStateMachine_tracing
=== RUN TestAccSFNStateMachine_disappears
=== PAUSE TestAccSFNStateMachine_disappears
=== RUN TestAccSFNStateMachine_expressLogging
=== PAUSE TestAccSFNStateMachine_expressLogging
=== RUN TestAccSFNStateMachine_encryptionConfigurationCustomerManagedKMSKey
--- PASS: TestAccSFNStateMachine_encryptionConfigurationCustomerManagedKMSKey (67.81s)
=== RUN TestAccSFNStateMachine_encryptionConfigurationServiceOwnedKey
--- PASS: TestAccSFNStateMachine_encryptionConfigurationServiceOwnedKey (43.79s)
=== CONT TestAccSFNStateMachine_createUpdate
=== CONT TestAccSFNStateMachine_publish
=== CONT TestAccSFNStateMachine_expressLogging
=== CONT TestAccSFNStateMachine_disappears
=== CONT TestAccSFNStateMachine_tracing
=== CONT TestAccSFNStateMachine_tags
=== CONT TestAccSFNStateMachine_nameGenerated
=== CONT TestAccSFNStateMachine_namePrefix
=== CONT TestAccSFNStateMachine_standardUpdate
=== CONT TestAccSFNStateMachine_expressUpdate
--- PASS: TestAccSFNStateMachine_createUpdate (58.04s)
--- PASS: TestAccSFNStateMachine_expressUpdate (77.38s)
--- PASS: TestAccSFNStateMachine_standardUpdate (80.22s)
--- PASS: TestAccSFNStateMachine_disappears (91.41s)
--- PASS: TestAccSFNStateMachine_nameGenerated (95.53s)
--- PASS: TestAccSFNStateMachine_publish (99.47s)
--- PASS: TestAccSFNStateMachine_namePrefix (121.38s)
--- PASS: TestAccSFNStateMachine_tracing (126.60s)
--- PASS: TestAccSFNStateMachine_tags (144.25s)
--- PASS: TestAccSFNStateMachine_expressLogging (145.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sfn 261.364s
@AnitaErnszt Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.62.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
State Machine resource is currently unaware that the version_arn and revision_id attributes will be updated when the resource is updated. This result in resources that depend on the new version only getting updated on subsequent terraform runs.
Took inspiration from how Lambda and CloudFormation resources are handling the updates.
Relations
Closes #36272
References
Output from Acceptance Testing