question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSON Ordering of CloudFormation get_template

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stealthycoincommented, Dec 5, 2017

Looks like this should be doable since we right now just use a blanket json.loads on the TemplateBody . https://github.com/boto/botocore/blob/cea3473579ae8347adbe54bc1fc5f7c1a7cd4676/botocore/handlers.py#L166

Marking as a feature request.

0reactions
github-actions[bot]commented, May 26, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found