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

Add Rules to ordering #133

Merged

Conversation

jameslevine
Copy link
Contributor

@jameslevine jameslevine commented May 12, 2023

Issue #, if available:
No Issue

Description of changes:
We currently have Rules in our CloudFormation template. It looks like, since this isn't included in the ordering, it automatically gets pushed at the bottom of the file.

It would be nice to see Rules being consistently placed in the same position in the template.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Issue #, if available:
No Issue

Description of changes:
We currently have Rules in our Cloudformation template. It looks like, since this isn't included in the ordering, it automatically get's pushed at the bottom of the file. 

It would be nice to see Rules being consistently placed in the same position in the template.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
@ctd
Copy link
Contributor

ctd commented May 15, 2023

Perhaps Rules should be after Parameters, per the anatomy documentation?

@jameslevine
Copy link
Contributor Author

Perhaps Rules should be after Parameters, per the anatomy documentation?

Thanks, this is a good point, I have updated to follow this.

@jameslevine
Copy link
Contributor Author

I have now updated the tests to include Rules too.

@ConnorKirk
Copy link
Contributor

I'm not strictly the maintainer for this project, so I'll defer review to someone more official 😄

I'd consider this a minor breaking change. Before this change rain would format your template with Rules at the end of the template.

After this change the rules section will be below the Parameters section. Might be a minor annoyance if you version control your templates.

@stilvoid
Copy link
Member

lgtm pending commit history tidy up :)

@jameslevine jameslevine force-pushed the add-missing-rules-to-ordering branch from 8ab0f31 to eaf9cfa Compare May 17, 2023 13:28
@jameslevine
Copy link
Contributor Author

lgtm pending commit history tidy up :)

Should be tidied up now 👍

Copy link
Member

@stilvoid stilvoid left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@ericzbeard ericzbeard merged commit 983ae3f into aws-cloudformation:main May 23, 2023
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.

5 participants