Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Support for Additional Tags #35

Closed
Closed
@JinLee794

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions