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

Audit tag validation #751

Merged
merged 3 commits into from
Jul 27, 2024
Merged

Audit tag validation #751

merged 3 commits into from
Jul 27, 2024

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented Jul 27, 2024

There are two ways to express "none of something" in HCL:

  things = null

and

  things = []

In Terraform, these are distinct values, but most of our API endpoints don't distinguish between an empty set and a null set, making it tricky for us to avoid state churn by getting the correct value (null or []) into the Terraform state.

The easiest way to police it is to just disallow one of the values.

This PR is the result of auditing the tag set on all resources and data sources to ensure that we (a) handle empty sets correctly in resources and (b) disallow empty tag values.

Closes #736

@chrismarget-j chrismarget-j changed the title WIP: Audit tag validation Audit tag validation Jul 27, 2024
@chrismarget-j chrismarget-j merged commit 9edfb51 into main Jul 27, 2024
1 check passed
@chrismarget-j chrismarget-j deleted the task/736-audit-tag-validators branch July 27, 2024 13:50
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.

tags validation audit
2 participants