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: