Naming & Tagging Standards

Standardize resource naming and mandatory tagging across Terraform and CDK projects.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/nicolasmosquerar/AI-skills-for-Iac --skill naming-tagging-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Naming & Tagging Standards
Source: https://github.com/nicolasmosquerar/AI-skills-for-Iac/tree/main/.agent/skills/naming-tagging-standards
Command: npx skills add https://github.com/nicolasmosquerar/AI-skills-for-Iac --skill naming-tagging-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

In large IaC teams, inconsistent resource names and missing tags lead to cost ambiguity, security concerns, and audit challenges. This skill defines a repeatable naming pattern and mandatory tagging to improve governance and automation.

Core Features & Use Cases

  • Defines a standard naming pattern like {org}-{env}-{app}-{resource} to ensure predictable resource identifiers.
  • Enforces mandatory tags such as Environment, Owner, Project, CostCenter, and ManagedBy to improve cost attribution and security ownership.
  • Provides guidance for policy-based enforcement (e.g., Conftest/OPA) and CI checks to prevent non-compliant resources.
  • Use Case: apply standards across Terraform and CDK projects to simplify auditing and governance.

Quick Start

Apply the naming and tagging standards to your IaC repository by validating resource names and tags during CI.

Frequently Asked Questions about Naming & Tagging Standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce mandatory tagging and naming standards in Terraform?

To enforce mandatory tagging and naming standards in Terraform, apply a repeatable pattern like org-env-app-resource for identifiers and use Conftest policy-as-code in CI to validate required tags such as Environment, Owner, and CostCenter before deployment.

What are the required tags for IaC cost attribution and governance?

Required tags for IaC cost attribution and governance include Environment, Owner, Project, CostCenter, and ManagedBy. Applying these mandatory tag keys standardizes resource ownership and clarifies cost tracking across multiple cloud environments.

Does this naming and tagging policy work with CDK workflows?

Yes, this naming and tagging policy works with CDK workflows. It applies standardization rules across both Terraform and CDK projects, enabling pattern validation and governance checks to simplify auditing for multiple teams.

How do I validate resource naming patterns in a CI/CD pipeline?

You validate resource naming patterns in a CI/CD pipeline by integrating policy-as-code checks using Conftest. This prevents non-compliant resources from deploying by enforcing the defined naming structure and mandatory tags during CI checks.

Why do I need policy-as-code for infrastructure tagging?

You need policy-as-code for infrastructure tagging to automate governance and prevent missing tags. Automated Conftest or OPA checks in CI enforce required tags like CostCenter and ManagedBy, resolving cost ambiguity and security audit challenges in large teams.