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 guard rule to enforce tag property is not create only #76

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

pultormi
Copy link
Contributor

@pultormi pultormi commented Nov 27, 2024

Issue #, if available:

Tags must be updatable. Therefore, they must not be a create only property of a resource schema. If they are allowed to be create only for a given resource. Tag updatable must be false.

Description of changes:

Added two guard rules to assert that tagProperty cannot be within the create only property list. If it is a create only property, then tagging updatable must be false.

Rules set as warning initially.

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

@pultormi pultormi requested a review from ammokhov November 27, 2024 21:29
@pultormi pultormi marked this pull request as ready for review November 27, 2024 22:56
@pultormi pultormi removed the request for review from ammokhov December 9, 2024 22:51
@pultormi pultormi force-pushed the tagging-create-only branch from 497bf0e to 29fb01d Compare December 16, 2024 19:08
@pultormi pultormi force-pushed the tagging-create-only branch from 9170675 to 42a6dd7 Compare December 16, 2024 19:50
@pultormi pultormi requested review from wenyez and ammokhov December 16, 2024 19:52
Copy link
Contributor

@ammokhov ammokhov left a comment

Choose a reason for hiding this comment

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

Great change, good unit tests coverage

@pultormi pultormi merged commit c2f98e8 into aws-cloudformation:main Dec 18, 2024
3 checks passed
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.

3 participants