Skip to content

fix: sanitise schedule expression in GuScheduledLambda construct IDs#2849

Draft
jorgeazevedo wants to merge 1 commit intomainfrom
ja-fix-scheduled-lambda-cron-resource-id
Draft

fix: sanitise schedule expression in GuScheduledLambda construct IDs#2849
jorgeazevedo wants to merge 1 commit intomainfrom
ja-fix-scheduled-lambda-cron-resource-id

Conversation

@jorgeazevedo
Copy link
Contributor

What does this change?

Sanitises schedule expression strings (e.g. cron(* * * * ? *)) in GuScheduledLambda construct IDs by stripping non-alphanumeric characters, preventing unstable CloudFormation logical IDs that caused phantom changesets on every deployment.

How has this change been tested?

Have we considered potential risks?

@jorgeazevedo jorgeazevedo added the fix Departmental tracking: fix label Mar 4, 2026
@changeset-bot
Copy link

changeset-bot bot commented Mar 4, 2026

⚠️ No Changeset found

Latest commit: 875d963

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@jorgeazevedo jorgeazevedo force-pushed the ja-fix-scheduled-lambda-cron-resource-id branch 3 times, most recently from 095fc02 to a475072 Compare March 4, 2026 16:53
Schedule expressions like cron(* * * * ? *) contain characters that
produce unstable CloudFormation logical IDs. Strip non-alphanumeric
characters from the expression before using it in the construct ID.
@jorgeazevedo jorgeazevedo force-pushed the ja-fix-scheduled-lambda-cron-resource-id branch from a475072 to 875d963 Compare March 4, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant