8000 CloudFormation: Fix LoggingConfiguration Parameter Handling in StepFunctions Resource Provider by MEPalma · Pull Request #12433 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

CloudFormation: Fix LoggingConfiguration Parameter Handling in StepFunctions Resource Provider #12433

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 1 commit into from
Mar 26, 2025

Conversation

MEPalma
Copy link
Contributor
@MEPalma MEPalma commented Mar 24, 2025

Motivation

This PR fixes a limitation in the CloudFormation resource provider for AWS Step Functions where the LoggingConfiguration parameters are not passed through during Create and Delete actions #11374. These changes address such limitation and add a related positive snapshot test.

@MEPalma MEPalma added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Mar 24, 2025
@MEPalma MEPalma added this to the 4.3 milestone Mar 24, 2025
@MEPalma MEPalma self-assigned this Mar 24, 2025
@MEPalma MEPalma changed the title CloudFormation: CloudFormation: Fix LogginConfiguration Parameters Handling in StepFunctions Resource Provider Mar 24, 2025
@MEPalma MEPalma changed the title CloudFormation: Fix LogginConfiguration Parameters Handling in StepFunctions Resource Provider CloudFormation: Fix LoggingConfiguration Parameter Handling in StepFunctions Resource Provider Mar 24, 2025
Copy link

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 51m 45s ⏱️ + 1m 48s
4 306 tests +1  3 985 ✅ +1  321 💤 ±0  0 ❌ ±0 
4 308 runs  +1  3 985 ✅ +1  323 💤 ±0  0 ❌ ±0 

Results for commit 96581d0. ± Comparison against base commit 0d63c5e.

@MEPalma MEPalma modified the milestones: 4.3, 4.4 Mar 25, 2025
Copy link
Member
@joe4dev joe4dev left a comment

Choose a reason for hiding this comment

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

LGTM

I just added some tiny ideas to improve the test suite 📈 , but feel free to merge 👍

sfn_snapshot.add_transformers_list(
[
JsonpathTransformer("$..roleArn", "role-arn"),
JsonpathTransformer("$..stateMachineArn", "state-machine-arn"),
Copy link
Member

Choose a reason for hiding this comment

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

💡 It might be worth adding such transformers to the default StepFunctions service transformers in the future for the ones appearing frequently

stack = deploy_cfn_template(
template_path=os.path.join(
os.path.dirname(__file__),
"../../../templates/statemachine_machine_logging_configuration.yml",
Copy link
Member

Choose a reason for hiding this comment

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

style nit: having a path helper or variable could simplify these error-prone ../../.... path navigations

@MEPalma MEPalma merged commit c59ab8f into master Mar 26, 2025
38 checks passed
@MEPalma MEPalma deleted the MEP-SFN-CFN_LoggingConfiguration branch March 26, 2025 12:46
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
0