JSON Ordering of CloudFormation get_template
See original GitHub issueWhen using get_template()
the output is ordered differently than what appears in the AWS console. This makes diffing against GitHub repos and doing other types of compares very difficult.
Currently we use the PowerShell SDK to download our live templates can compare them to what is in our repos. PowerShell keeps the output the same as what appears in the console. We would like, however to not be dependent on PowerShell for this and would rather use Python.
Can we get a function, option, or an override that respects the ordering of the template?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Template anatomy - AWS CloudFormation
A template is a JSON- or YAML-formatted text file that describes your AWS infrastructure. The following examples show an AWS CloudFormation template ...
Read more >get-template — AWS CLI 2.9.6 Command Reference
For deleted stacks, GetTemplate returns the template for up to 90 days ... The generated JSON skeleton is not stable between versions of...
Read more >Filtering cloudformation stack resources using JQ
I'm trying to write a JQ-filter for filtering specific resources from an AWS cloudformation template based on resource ...
Read more >aws cloudformation describe-stack-events - Fig.io
... stack related events for a specified stack in reverse chronological order. ... It is not possible to pass arbitrary binary values using...
Read more >AWS CloudFormation Deletion Policy in Use - Trend Micro
Ensure that a deletion policy, implemented with the DeletionPolicy attribute, is used for your Amazon CloudFormation stacks in order ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like this should be doable since we right now just use a blanket
json.loads
on theTemplateBody
. https://github.com/boto/botocore/blob/cea3473579ae8347adbe54bc1fc5f7c1a7cd4676/botocore/handlers.py#L166Marking as a feature request.
Greetings! It looks like this issue hasn’t been active in longer than two years. We encourage you to check if this is still an issue in the latest release. Because it has been longer than two years since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment to prevent automatic closure, or if the issue is already closed, please feel free to reopen it.