ECI-1126 [OCI] - Support Tag Defaults in OCI Quickstart#96
Open
EamonBrady1 wants to merge 3 commits intomasterfrom
Open
ECI-1126 [OCI] - Support Tag Defaults in OCI Quickstart#96EamonBrady1 wants to merge 3 commits intomasterfrom
EamonBrady1 wants to merge 3 commits intomasterfrom
Conversation
bengillmandd
approved these changes
Feb 27, 2026
Co-authored-by: Ben Gillman <165046932+bengillmandd@users.noreply.github.com>
sva91
requested changes
Feb 27, 2026
Comment on lines
+10
to
+11
| for td in data.oci_identity_tag_defaults.compartment.tag_defaults : | ||
| "${local.tag_defaults_namespace_names[td.tag_namespace_id]}.${td.tag_definition_name}" => td.value |
Contributor
There was a problem hiding this comment.
so, for tag defaults, does there always exist a value from the data block ? From what I can recall, some defaults can require a manual entry from the user creating the resource. Is that not the case ?
Contributor
Author
There was a problem hiding this comment.
Yes you are correct and I verified this behavior. Right now, the response returns "[CANNOT BE EMPTY]" if a tag key requires an input, but does not have a default value. So, right now I am using that as the entered value, to satisfy the constraints for creating the resource.
On a generated vcn when testing, one of the tags was "eamon-test.eamon:[CANNOT BE EMPTY]" as a result of this, which satisfied the constraint.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Why
Customers can have tag defaults (see link below) requiring resources created in a compartment to have certain defined tags. This update automatically detects and applies those tags when necessary in the user's compartment.
The policy allowing Datadog to use defined tags is not conditional on whether or not the compartment has defined tags in order to remain future compatible, if the user eventually adds these, so that it will not break their integration.
Testing
https://www.ateam-oracle.com/oracle-cloud-infrastructure-tagging-best-practices-enable-mandatory-tagging-for-compartments