terraform-oci-oke icon indicating copy to clipboard operation
terraform-oci-oke copied to clipboard

Support defined tags in addition to freeform

Open 12345ieee opened this issue 3 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The module supports adding freeform tags to all of the resources created by the module, but has no way to add defined tags. Defined tags are used by the bean counters, it'd be very helpful to be able to set them in the module.

New or Affected Resource(s)

All the module children.

Potential Terraform Configuration

An exact clone of the freeform tags map:

defined_tags = {
  # vcn, bastion and operator freeform_tags are required
  # add more defined_tags in each as desired
  vcn = {
    environment = "dev"
  }
  bastion = {
    access      = "public",
    environment = "dev",
    role        = "bastion",
    security    = "high"
  }
  operator = {
    access      = "restricted",
    environment = "dev",
    role        = "operator",
    security    = "high"
  }
  oke = {
    cluster = {
      environment = "dev"
      role        = "cluster"
    }
    persistent_volume = {
      environment = "dev"
    }    
    service_lb = {
      environment = "dev"
      role        = "load balancer"
    }
    node_pool = {
      environment = "dev"
      role        = "node-pool"
    }
  }
}

References

See #538 .

12345ieee avatar Aug 23 '22 20:08 12345ieee