Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 942 Bytes

terraform-tagging-our-resources.md

File metadata and controls

19 lines (14 loc) · 942 Bytes

Terraform: tagging our resources

We tag our resources with a link to the Terraform configuration in GitHub using the default tags feature in the Terraform provider:

provider "aws" {
  region = "eu-west-1"

  default_tags {
    tags = {
      TerraformConfigurationURL = "https://github.com/wellcomecollection/catalogue-pipeline/tree/main/reindexer/terraform"
    }
  }
}

These tags are visible in the AWS console, which means you can find a resource in the console and then find exactly where it's defined in Terraform:

Screenshot of a table of tags in the AWS console. The tags are key-value pairs; the table has one tag. The key is TerraformConfigurationURL and the value is a URL to a specific subfolder of a GitHub repository.