-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
module for parsing cloudformation files #44123
Conversation
sometimes you might want to parse a cloudformation file before deploying it
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
|
Hi @sjmiller609, Thank you for the pullrequest, just so you are aware we have a dedicated Working Group for aws. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might be better suited as a lookup plugin. That way users could do:
set_fact: '{{ lookup("cloudformation_parse", "myfile.yml") }}'
Then that will return the full dict, and they can pipe it to json_query
to grab specific pieces if they need it, or add other values.
@ryansb I agree with your point |
Great, you can look at some of the existing lookups, such as |
@ryansb Thanks Ryan for the example |
@ryansb Let me know what you think. Thanks |
I'm going to close and re-open to get the ball rolling |
SUMMARY
New module 'cloudformation_parse' - sometimes a user may want to parse a cloudformation file before deploying it. You can't parse yaml cloudformation with normal yaml parsing because the built-in functions cannot be parsed without special yaml handling (e.g. !Ref). This will also work for json cloudformation.
ISSUE TYPE
COMPONENT NAME
cloudformation_parse
ANSIBLE VERSION
ADDITIONAL INFORMATION
cfn-flip is used for parsing the cloudformation files. This python module is supported by amazon https://github.com/awslabs/aws-cfn-template-flip