Azure/terraform-azurerm-openai

Support for Additional Tags

JinLee794 opened this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues

Description

Currently it appears that the tags are limited to application_name and environment.
https://github.com/Azure/terraform-azurerm-openai/blob/main/main.tf#L9

While looking to standardize tagging strategy based on customer's requirements, flexibility in the ability to provide custom tags would be essential.

New or Affected Resource(s)/Data Source(s)

all tagged resources

Potential Terraform Configuration

perhaps adding a new variable "additional_tags":

variable "additional_tags" {
  default = {}
}

and on https://github.com/Azure/terraform-azurerm-openai/blob/main/main.tf#L9

  tags = merge(var.additional_tags, (var.default_tags_enabled ? {
    Application_Name = var.application_name
    Environment      = var.environment
  } : {})

(FYI haven't tested the function above works)

References

No response

Completed via #36