Apply tags to one or more EC2 resources.
Section: VPC, Subnets, and Security Groups
Tag EC2 resources
bash
bash
aws ec2 create-tags --resources i-0123456789abcdef0 vol-0123456789abcdef0 --tags Key=Env,Value=prod Key=App,Value=apiExplanation
Use consistent tag sets for cost, ownership, and automation.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing VPC, Subnets, and Security Groups