Tags help you organize, track costs, and manage access to AWS resources.

Required Tags

We recommend these tags for all resources:

TagPurposeExample
EnvironmentDeployment stageproduction
ApplicationApplication namewebapp
OwnerTeam or person responsibleplatform-team
CostCenterBilling allocationengineering

Optional Tags

TagPurposeExample
ProjectProject identifiermigration-2024
ComplianceRegulatory requirementspci-dss
DataClassificationData sensitivityconfidential

Implementation

Default Tags

Use Terraform’s default_tags in the provider:

provider "aws" {
  default_tags {
    tags = {
      Environment = var.environment
      Application = var.app_name
      ManagedBy   = "terraform"
    }
  }
}

Module Tags

Pass additional tags to modules:

module "vpc" {
  source = "..."

  tags = {
    CostCenter = "networking"
  }
}

Tag Policies

Enforce tagging with AWS Organizations tag policies or Terraform validation.

Cost Allocation

Enable cost allocation tags in AWS Billing to track spending by tag.

Next Steps