Skip to content

Update template_utils.py #12217

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update template_utils.py #12217

wants to merge 1 commit into from

Conversation

0xDS
Copy link

@0xDS 0xDS commented Feb 2, 2025

fixed the assumption that every element is a dict might not be true.

Motivation

Fixed todo in the code.

fixed the assumption that every element is a dict might not be true.
@localstack-bot
Copy link
Contributor

localstack-bot commented Feb 2, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Contributor

@localstack-bot localstack-bot left a comment

Choose a reason for hiding this comment

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

Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contributions. Our team will reach out with any reviews or feedbacks that we have shortly. We recommend joining our Slack Community and share your PR on the #community channel to share your contributions with us. Please make sure you are following our contributing guidelines and our Code of Conduct.

@0xDS
Copy link
Author

0xDS commented Feb 2, 2025

I have read the CLA Document and I hereby sign the CLA

localstack-bot added a commit that referenced this pull request Feb 2, 2025
Copy link
Contributor

@simonrw simonrw left a comment

Choose a reason for hiding this comment

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

Thanks for making this contribution, however I think the TODO is more about our understanding. We would like to know: "are there any circumstances where a resource property (possibly nested) is a list of non-dicts".

This boils down to: is there a way in CloudFormation to refer to another resource without representing it as a dict.

Some dict examples:

Value: 
  Fn::Sub:
    - "my-value-${Foo}"
    - Foo: bar
Value:
  Fn::Sub: "my-value-${LogicalResourceId}"
Value:
  Fn::Join:
    - ""
    - - "a"
      - "b"

Can you think of any such method in CloudFormation?

@k-a-il k-a-il added this to the Playground milestone Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants