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 handling short notation form for !GetAtt #317

Closed

Conversation

dchakrav-github
Copy link
Contributor

@dchakrav-github dchakrav-github commented Jan 7, 2023

Issue #, if available: NEW bug found when testing

Description of changes:

  1. When using the short form in YAML for Fn::GetAtt, like !GetAtt MyKey.Arn, the argument was used directly as a string. This change coverts it correctly into the long form for Fn::GetAtt.
  2. Fix for improved error message with type information
  3. Pretty print JSON as default for parse-tree

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

…ray form

2. Included type information in error message
3. Change parse-tree to pretty-print for JSON
Copy link
Contributor

@joshfried-aws joshfried-aws left a comment

Choose a reason for hiding this comment

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

Hi @dchakrav-github the code looks good, would it be possible to add a couple of unit tests to handle this use case?

@joshfried-aws
Copy link
Contributor

Hi @dchakrav-github just to let you know the GetAtt bug was fixed as part of #325.

@joshfried-aws
Copy link
Contributor

Going to close this PR since the main issue of this PR was already addressed, and i have now updated a new pr with the rest of the fixes in this.

Thanks @dchakrav-github

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.

2 participants