unbounce / iidy

iidy (Is it done yet?) -- CloudFormation with Confidence
MIT License
52 stars 7 forks source link

Add export get command #160

Closed jpb closed 5 years ago

jpb commented 5 years ago

Add iidy export get <export name> (similar to iidy param get) for fetching CloudFormation export values. This can be done via the AWS CLI, but requires complex jmespath or jq to get export values.

Perhaps iidy output get <stack name> [<output name>] would be useful as well?

tavisrudd commented 5 years ago

I think this could be generalized to a command that will render any import directly: iidy render-import cfn:export:exportName or iidy render-import cfn:output:lp-webapp-integration-331 or iidy render-import cfn:output:lp-webapp-integration-331/WebElasticLoadBalancer.

tavisrudd commented 5 years ago

@jpb If you like that approach, I can implement it.

jpb commented 5 years ago

I think that is a good solution 👍 (perhaps get-import or something of the like – "render" makes me think I could put handlebars in there).

tavisrudd commented 5 years ago

Yeah, that's a better name. I think it should support the same --query and --format options as render.