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(cfn-include): Fn::GetAtt with a string argument fails to include #10546

Merged
merged 2 commits into from Sep 26, 2020

Conversation

skinny85
Copy link
Contributor

As it turns out, Fn::GetAtt can be passed a string argument not only in YAML,
but in JSON CloudFormation templates as well.
Handle that case in our template parser for cfn-include.

This handling allows us to stop special-casing transforming the short-form
!GetAtt in our YAML parsing.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

As it turns out, Fn::GetAtt can be passed a string argument not only in YAML,
but in JSON CloudFormation templates as well.
Handle that case in our template parser for cfn-include.

This handling allows us to stop special-casing transforming the short-form
!GetAtt in our YAML parsing.
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 25, 2020
@shivlaks shivlaks added the pr/do-not-merge This PR should not be merged at this time. label Sep 25, 2020
Copy link
Contributor

@shivlaks shivlaks left a comment

Choose a reason for hiding this comment

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

neat!

could you fix the title to describe what doesn't work so it's helpful for consumers of the CHANGELOG when they see this under bug fixes!

feel free to drop the do-not-merge after that :)

@skinny85 skinny85 changed the title fix(cfn-include): handle Fn::GetAtt with a string argument fix(cfn-include): Fn::GetAtt with a string argument fails to include Sep 25, 2020
@skinny85 skinny85 removed the pr/do-not-merge This PR should not be merged at this time. label Sep 25, 2020
@mergify
Copy link
Contributor

mergify bot commented Sep 25, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: ecad8c9
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 6a24026 into aws:master Sep 26, 2020
@skinny85 skinny85 deleted the fix/get-att-string-arg branch September 26, 2020 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants