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

Document creation-only tags fields as creation-only #19687

Open
rileykarson opened this issue Sep 30, 2024 · 0 comments
Open

Document creation-only tags fields as creation-only #19687

rileykarson opened this issue Sep 30, 2024 · 0 comments

Comments

@rileykarson
Copy link
Collaborator

rileykarson commented Sep 30, 2024

What kind of contribution is this issue about?

Other (specify in details)

Details

Some resources like google_folder have a tags field that's creation-only, as the API doesn't allow reading back the tags set on the resource from the resource itself. New list permissions [potentially set on the org] are required to read back the set of tags on a resource, making it infeasible to support even a simulated read-write field using the underlying tags APIs.

A sample description from https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_folder#tags is:

A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored when empty. The field is immutable and causes resource replacement when mutated.

We should ensure that the fact that the fields are creation only is more clear, and recommend the dedicated tags resources for flows other than create-on-create.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants