Tagging EC2 and RDS Instances
After Launch (use CLI)
aws ec2 run-instances –tag-specifications
aws ec2 run-instances --image-id ami-abc12345 --count 1 \
--instance-type t2.micro --key-name MyKeyPair \
--subnet-id subnet-6e7f829e \
--tag-specifications 'ResourceType=instance,Tags=[{Key=webserver,Value=production}]' 'ResourceType=volume,Tags=[{Key=cost-center,Value=cc123}]'
On Launch
Can add tags through console (or CLI).
Leave a Reply