-
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 SFN Alias not triggering when SFN code or configuration is updated. #36272
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @jdwilly2001 👋 Thank you for taking the time to raise this! Are you able to supply debug logs (redacted as needed) to help whoever picks this up to look into it? Given the external dependencies, the example configuration provided might be a bit involved to use, so that logging might prove to be key. |
I am seeing something similar that may be related. I added When I fixed the permissions and re-ran the apply, plan did not detect that the version was unpublished, and so it didn't go to publish the version. Since this state machine doesn't have any published versions, the subsequent SFN alias resource in my config has also failed since there is no version ARN. It feels like these things may be related, and I suspect that once I get my alias created, I will also run into the bug described here where the alias will not be updated when the definition changes. |
We also run into this bug, and it's blocking us ATM. I had a quick look, and it's due to the fact that the resource is unaware that if changes happen both the version arn and the revision id will be updated. I've managed to fix it locally, and I'll raise an PR shortly, but I may need some assistance on testing |
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.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.7.2
AWS Provider Version
5.34.0
Affected Resource(s)
Expected Behavior
When the definition field of an AWS State Machine is updated and publish is true. The attribute state_machine_version_arn should be marked as changing.
The dependent resource aws_sfn_alias which is referencing the attribute state_machine_version_arn would then be flagged as an updated resource in the plan.
Apply will apply the change to the state machine and then update the alias with the latest version of the state machine
Actual Behavior
When terraform plan is happening, it is noticing that the definiton of the state machine has changed.
The state_machine_version_arn field is not showing as being updated,
The dependent resource aws_sfn_alias is not being flagged for update in the plan
When the apply runs, the state machine is updated, but the alias is not.
When a second plan/apply is run, the alias is flagged for update and the alias is updated correctly.
This can cause a period of unexpected behavior and errors in production systems
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?
None
The text was updated successfully, but these errors were encountered: