Skip to content

Fix/sfn state machine hang#47447

Open
AndrewCharlesHay wants to merge 1 commit intohashicorp:mainfrom
AndrewCharlesHay:fix/sfn-state-machine-hang
Open

Fix/sfn state machine hang#47447
AndrewCharlesHay wants to merge 1 commit intohashicorp:mainfrom
AndrewCharlesHay:fix/sfn-state-machine-hang

Conversation

@AndrewCharlesHay
Copy link
Copy Markdown
Contributor

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

No changes to security controls.

Description

We cap the retry wait time for AccessDeniedException inside aws_sfn_state_machine creation to a maximum of 2 minutes. Previously, it would catch an AccessDeniedException (often thrown when CloudWatch Logs permissions are absent) and retry endlessly up to the full resource timeout (e.g., 5-30 minutes). Now, it safely waits up to 2 minutes for IAM eventual consistency propagation without hanging indefinitely for entirely missing permissions.

Relations

Relates #7893

@AndrewCharlesHay AndrewCharlesHay requested a review from a team as a code owner April 14, 2026 19:30
@github-actions
Copy link
Copy Markdown
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions Bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/mediaconvert Issues and PRs that pertain to the mediaconvert service. service/sfn Issues and PRs that pertain to the sfn service. generators Relates to code generators. labels Apr 14, 2026
@dosubot dosubot Bot added the bug Addresses a defect in current functionality. label Apr 14, 2026
@github-actions github-actions Bot added the size/XL Managed by automation to categorize the size of a PR. label Apr 14, 2026
@AndrewCharlesHay AndrewCharlesHay force-pushed the fix/sfn-state-machine-hang branch from 925a6cd to 2cb8b80 Compare April 14, 2026 19:31
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Our automation has detected the following potential issues with your pull request


❌ Changelog Entry Required (Click to expand)

The proposed change requires a changelog entry. Please see the Changelog Process section of the contributing guide for information on the changelog generation process.

Tip: This check is not triggered for draft pull requests, since the pull request number is not known until the pull request is opened and is required to create a changelog entry. Opening a pull request first as a draft, adding the requisite changelog entry file, and then marking the pull request as ready for review will prevent future warnings.

@github-actions github-actions Bot added size/XS Managed by automation to categorize the size of a PR. and removed size/XL Managed by automation to categorize the size of a PR. labels Apr 14, 2026
@github-actions github-actions Bot removed the needs-triage Waiting for first response or review from a maintainer. label Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Warning

This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Addresses a defect in current functionality. documentation Introduces or discusses updates to documentation. generators Relates to code generators. service/mediaconvert Issues and PRs that pertain to the mediaconvert service. service/sfn Issues and PRs that pertain to the sfn service. size/XS Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant