Skip to content
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

Fix resolving pseudo-parameters in Fn::Sub #8974

Merged
merged 1 commit into from Aug 24, 2023

Conversation

dominikschubert
Copy link
Member

Motivation

Fixes the issue multiple people experienced where pseudo-parameter couldn't be resolved correctly when used in Fn::Sub.

Example error message: Unable to resolve attribute ref AWS::URLSuffix

Resolves #8726

Changes

  • check for pseudo-parameter when resolving a placeholder in a sub string and resolve them recursively

@dominikschubert dominikschubert self-assigned this Aug 23, 2023
@dominikschubert dominikschubert added the semver: patch Non-breaking changes which can be included in patch releases label Aug 23, 2023
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.

LGTM

@coveralls
Copy link

Coverage Status

coverage: 80.712% (-0.02%) from 80.731% when pulling 377a076 on fix_cfn-sub-pseudoparams into b96c100 on master.

@github-actions
Copy link

LocalStack Community integration with Pro

       2 files         2 suites   1h 27m 7s ⏱️
2 111 tests 1 662 ✔️ 449 💤 0
2 112 runs  1 662 ✔️ 450 💤 0

Results for commit 377a076.

@dominikschubert dominikschubert merged commit 040130b into master Aug 24, 2023
27 of 28 checks passed
@dominikschubert dominikschubert deleted the fix_cfn-sub-pseudoparams branch August 24, 2023 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: failing to create stack with aws_ecs FargateService
3 participants