4 of 50 in All Controls
aws

Implement Cost Allocation Tagging Strategy

IDAWS-COST-001
Severity
high
Automation
Auto
Category
cost-management
Enforcementmandatory
Complexity / Impact
medium(low impact)
Cloud Scopeaws:root
Environments
all
Target Resources
EC2S3RDSLambdaEKSECSDynamoDBElastiCache
Services
aws-organizationscost-explorerbillingconfigservice-control-policies
Tags
cost-managementfinopstaggingbillinglanding-zone
Frameworks
NIST 800-53SOC 2ISO 27001
Governance
(quarterly)
Created
2026-05-03
Last Updated
2026-05-30

Specification & Description

Define and enforce a mandatory tagging strategy across all Landing Zone accounts to enable accurate cost attribution, financial accountability, asset ownership tracking, and environment-aware governance. Tags are enforced at resource creation via SCPs and monitored for drift via AWS Config.

Technical Specifications

A well-defined tagging strategy is the foundation of cloud financial management and operational governance. This control defines the mandatory tag key set, acceptable values, and enforcement mechanisms for all taggable AWS resources across the Landing Zone. The mandatory tag schema covers four governance dimensions:

Financial Attribution

  • CostCenter - Maps the resource to an internal cost center code (e.g., CC-1042). Used for chargeback and showback reporting in Cost Explorer.
  • Project - Associates the resource with a specific project or product initiative (e.g., proj-payments-api). Enables per-project spend visibility.
  • BudgetCode - Links the resource to an approved budget line item for finance reconciliation (e.g., FY26-INFRA-003).

Ownership & Accountability

  • Owner - Email address or team alias of the resource owner responsible for cost and operational decisions (e.g., platform-team@company.com).
  • SupportTeam - Email address or team alias of the support team responsible for handling incidents and requests (e.g., support-team@company.com).
  • ManagedBy - Indicates whether the resource is managed by Terraform, CDK, manual provisioning, or another IaC tool (e.g., terraform, cdk, manual). Supports drift detection and audit workflows.

Environment & Classification

  • Environment - Deployment tier with a controlled value set: production, staging, development, sandbox. Used by SCPs to apply differentiated guardrails per tier.
  • AssetSeverity - Business criticality classification of the resource: critical, high, medium, low. Critical and high assets trigger stricter backup, monitoring, and change management policies. This tag is the primary signal for automated runbook routing and incident prioritization.
  • DataClassification - Sensitivity level of data processed or stored: confidential, internal, public. Feeds DSPM tooling and S3 bucket policy enforcement.

Lifecycle Management

  • ExpiryDate - ISO 8601 date (YYYY-MM-DD) after which the resource is eligible for automated decommission review (e.g., 2026-12-31). Mandatory for sandbox and development environments.

SCPs enforce the presence of mandatory tags (CostCenter, Owner, Environment, AssetSeverity) at resource creation for covered services. AWS Config rules provide continuous drift detection for resources that were created before the SCP was applied or where tags were subsequently removed.

Security Rationale

Without a consistent tagging strategy, cost attribution becomes opaque, ownership is ambiguous, and automated governance policies lose their targeting signal. Tags are the connective tissue between financial reporting, security posture, and operational runbooks. Establishing the schema and enforcing it at creation time is significantly cheaper than retroactively tagging an estate of thousands of resources.

Business & Security Impact

Missing or inconsistent tags result in unattributed cloud spend, failed chargeback models, inability to scope security controls by environment or criticality, and degraded incident response due to unknown ownership. For Landing Zone accounts, untagged resources also represent a governance blind spot that compounds over time.

Compliance Framework Mappings (3)

Regulatory baselines and industry standards mapped to this control specification.

Beta
Framework / StandardMapped Requirements & ControlsControls
NIST 800-53 Rev 5NIST 800-53
CM-8SA-5
2
SOC 2SOC 2
CC5.1
1
ISO 27001:2022ISO 27001
A.8.1.1
1

* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.

Automated Detection & Rule Logic

Detection Engine: aws-api • Automated: Yes

Two detection layers run in parallel. The SCP prevents net-new non-compliant resources at creation time. AWS Config evaluates existing resources continuously against the required-tags rule and marks them NON_COMPLIANT when mandatory tags are absent or contain invalid values. Cost Explorer unblended cost reports grouped by CostCenter and Owner surface untagged spend as a secondary financial signal.

Config Compliancebash
# List Config non-compliant resources for the required-tags rule
aws configservice get-compliance-details-by-config-rule \
  --config-rule-name lz-required-tags-mandatory \
  --compliance-types NON_COMPLIANT \
  --query 'EvaluationResults[].{
    Resource: EvaluationResultIdentifier.EvaluationResultQualifier.ResourceId,
    Type: EvaluationResultIdentifier.EvaluationResultQualifier.ResourceType
  }'

# Identify untagged spend in Cost Explorer (last 30 days)
aws ce get-cost-and-usage \
  --time-period Start=$(date -d '-30 days' +%Y-%m-%d),End=$(date +%Y-%m-%d) \
  --granularity MONTHLY \
  --metrics UnblendedCost \
  --group-by Type=TAG,Key=CostCenter \
  --query 'ResultsByTime[].Groups[?Keys[0]==`CostCenter$`]'

Remediation Guide & Automation

Define the mandatory tag schema, activate cost allocation tags in the Billing console, deploy SCPs to enforce mandatory tag presence at resource creation, attach AWS Organizations Tag Policies for tag key casing and allowed value standardization, and configure AWS Config rules for drift detection.

Step-by-Step Instructions

  1. Finalize and document the mandatory tag schema (keys, permitted values, and owning team) in the organization's internal governance wiki.
  2. Activate all mandatory tag keys as Cost Allocation Tags in the Billing & Cost Management console under the Management account.
  3. Deploy the SCP at the Organization root or workload OUs to deny resource creation when mandatory tags are missing.
  4. Attach an AWS Organizations Tag Policy to enforce key capitalization and allowed tag values across all resources (including S3 buckets).
  5. Deploy the AWS Config required-tags managed rule to detect existing resources missing mandatory tags.
  6. Configure Cost Explorer tag-grouped reports for CostCenter and Project to validate attribution coverage after activation.
  7. Establish a remediation workflow triggered by Config non-compliance findings for untagged resources.
  8. Communicate the tag schema and enforcement date to all account teams with a minimum 30-day lead time before SCP activation.
Tagging SCP (Mandatory Tag Enforcement)other
# SCP: Deny resource creation if mandatory tags are absent
# Attach to the root OU or individual workload OUs.
# Covers high-cost services supporting request tags at creation time.
# Note: s3:CreateBucket is excluded as S3 does not support aws:RequestTag on creation.
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyCreateWithoutCostCenterTag",
      "Effect": "Deny",
      "Action": [
        "ec2:RunInstances",
        "ec2:CreateVolume",
        "rds:CreateDBInstance",
        "lambda:CreateFunction",
        "eks:CreateCluster",
        "ecs:CreateService",
        "dynamodb:CreateTable",
        "elasticache:CreateCacheCluster"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:RequestTag/CostCenter": "true"
        }
      }
    },
    {
      "Sid": "DenyCreateWithoutOwnerTag",
      "Effect": "Deny",
      "Action": [
        "ec2:RunInstances",
        "ec2:CreateVolume",
        "rds:CreateDBInstance",
        "lambda:CreateFunction",
        "eks:CreateCluster",
        "ecs:CreateService",
        "dynamodb:CreateTable",
        "elasticache:CreateCacheCluster"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:RequestTag/Owner": "true"
        }
      }
    },
    {
      "Sid": "DenyCreateWithoutEnvironmentTag",
      "Effect": "Deny",
      "Action": [
        "ec2:RunInstances",
        "ec2:CreateVolume",
        "rds:CreateDBInstance",
        "lambda:CreateFunction",
        "eks:CreateCluster",
        "ecs:CreateService",
        "dynamodb:CreateTable",
        "elasticache:CreateCacheCluster"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:RequestTag/Environment": "true"
        }
      }
    },
    {
      "Sid": "DenyCreateWithoutAssetSeverityTag",
      "Effect": "Deny",
      "Action": [
        "ec2:RunInstances",
        "ec2:CreateVolume",
        "rds:CreateDBInstance",
        "lambda:CreateFunction",
        "eks:CreateCluster",
        "ecs:CreateService",
        "dynamodb:CreateTable",
        "elasticache:CreateCacheCluster"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:RequestTag/AssetSeverity": "true"
        }
      }
    }
  ]
}
AWS Organizations Tag Policy (Value & Casing Enforcement)other
# AWS Organizations Tag Policy
# Attach to the Organization Root or OUs.
# Enforces case-sensitivity for tag keys and restricts permitted values for Environment and AssetSeverity.
{
  "tags": {
    "CostCenter": {
      "tag_key": {
        "@@assign": "CostCenter"
      }
    },
    "Owner": {
      "tag_key": {
        "@@assign": "Owner"
      }
    },
    "Environment": {
      "tag_key": {
        "@@assign": "Environment"
      },
      "tag_value": {
        "@@assign": [
          "production",
          "staging",
          "development",
          "sandbox"
        ]
      },
      "enforceable_for": {
        "@@assign": [
          "ec2:instance",
          "ec2:volume",
          "rds:db",
          "s3:bucket",
          "lambda:function",
          "eks:cluster"
        ]
      }
    },
    "AssetSeverity": {
      "tag_key": {
        "@@assign": "AssetSeverity"
      },
      "tag_value": {
        "@@assign": [
          "critical",
          "high",
          "medium",
          "low"
        ]
      },
      "enforceable_for": {
        "@@assign": [
          "ec2:instance",
          "ec2:volume",
          "rds:db",
          "s3:bucket",
          "lambda:function",
          "eks:cluster"
        ]
      }
    }
  }
}
Billing Tag Activation & Config Rulehcl
# Activate cost allocation tags in the Billing console
locals {
  mandatory_cost_allocation_tags = [
    "CostCenter",
    "Project",
    "BudgetCode",
    "Owner",
    "SupportTeam",
    "Environment",
    "AssetSeverity",
    "DataClassification",
    "ManagedBy",
    "ExpiryDate"
  ]
}

resource "aws_ce_cost_allocation_tag" "mandatory" {
  for_each = toset(local.mandatory_cost_allocation_tags)
  tag_key  = each.value
  status   = "Active"
}

# AWS Organizations Tag Policy resource
resource "aws_organizations_policy" "tag_policy" {
  name        = "lz-tag-policy"
  description = "Enforces tag key casing and allowed values"
  type        = "TAG_POLICY"
  content     = file("${path.module}/tag_policy.json")
}

# AWS Config rule: detect resources missing mandatory tags
resource "aws_config_config_rule" "required_tags" {
  name = "lz-required-tags-mandatory"

  source {
    owner             = "AWS"
    source_identifier = "REQUIRED_TAGS"
  }

  input_parameters = jsonencode({
    tag1Key   = "CostCenter"
    tag2Key   = "Owner"
    tag3Key   = "Environment"
    tag3Value = "production,staging,development,sandbox"
    tag4Key   = "AssetSeverity"
    tag4Value = "critical,high,medium,low"
  })

  scope {
    compliance_resource_types = [
      "AWS::EC2::Instance",
      "AWS::S3::Bucket",
      "AWS::RDS::DBInstance",
      "AWS::Lambda::Function",
      "AWS::EKS::Cluster",
      "AWS::DynamoDB::Table",
      "AWS::ElastiCache::CacheCluster"
    ]
  }
}
Billing Tag Activationbash
# Activate a cost allocation tag in the Billing console (Management account)
aws ce update-cost-allocation-tags-status \
  --cost-allocation-tags-status \
    TagKey=CostCenter,Status=Active \
    TagKey=Owner,Status=Active \
    TagKey=SupportTeam,Status=Active \
    TagKey=Environment,Status=Active \
    TagKey=AssetSeverity,Status=Active \
    TagKey=Project,Status=Active \
    TagKey=BudgetCode,Status=Active \
    TagKey=DataClassification,Status=Active \
    TagKey=ManagedBy,Status=Active \
    TagKey=ExpiryDate,Status=Active

We value your privacy

We use analytics cookies to understand how visitors interact with our site and to improve the user experience. You can choose to accept or decline these cookies.