Skip to content

CloudFormation, Fix Retrieval of State Machine Definitions On Stack Update #12044

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

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

MEPalma
Copy link
Contributor

@MEPalma MEPalma commented Dec 16, 2024

Motivation

Currently, CloudFormation encounters issues when updating state machines during StackUpdate operations, as it incorrectly assumes the state machine definition is always provided as a literal in the DefinitionString field. This assumption causes errors when using alternative methods for defining state machines, such as through DefaultS3Location #11255.
This update introduces tests for CloudFormation templates that create state machines using DefaultS3Location and ensures that during stack updates, the definition string is correctly extracted by sampling the available alternatives.

Changes

  • Snapshot tests for state machine creation and update through DefaultS3Location
  • Adjusted the update routine to extract the state machine definition

@MEPalma MEPalma added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Dec 16, 2024
@MEPalma MEPalma added this to the 4.1 milestone Dec 16, 2024
@MEPalma MEPalma self-assigned this Dec 16, 2024
Copy link

github-actions bot commented Dec 16, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 53m 23s ⏱️ -24s
3 901 tests +1  3 594 ✅ +1  307 💤 ±0  0 ❌ ±0 
3 903 runs  +1  3 594 ✅ +1  309 💤 ±0  0 ❌ ±0 

Results for commit aca2b0e. ± Comparison against base commit 42bec1a.

♻️ This comment has been updated with latest results.

Copy link
Member

@pinzon pinzon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for addressing this. Looks Good.
Just some nits in the test.

@MEPalma MEPalma merged commit a25d0d9 into master Dec 18, 2024
31 checks passed
@MEPalma MEPalma deleted the MEP-cfn-sfn-update_definition branch December 18, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants