# Create snapshot of EBS volume
aws ec2 create-snapshot --volume-id vol-6b204627 --description "New-Snapshot"
# TAG the snapshot
ec2-create-tags snap-d48d8873 --tag "Name=First-snap"
# Details of EBS volemes created
aws ec2 describe-volumes
# No of volumes attached
aws ec2 describe-volumes|grep "AvailabilityZone"|wc -l
# No of snapshots created in existing account
aws ec2 describe-snapshots --owner-ids
# Use five TAGS for a single AWS resource
aws ec2 create-tags --resources snap-1234567 --tags Key=Owner,Value=aaaaaa Key=Project,Value=pppppp Key=Application,Value=app1 Key=Environment,Value=PROD Key=Name,Value=AWS-US-East
aws ec2 create-snapshot --volume-id vol-6b204627 --description "New-Snapshot"
# TAG the snapshot
ec2-create-tags snap-d48d8873 --tag "Name=First-snap"
# Details of EBS volemes created
aws ec2 describe-volumes
# No of volumes attached
aws ec2 describe-volumes|grep "AvailabilityZone"|wc -l
# No of snapshots created in existing account
aws ec2 describe-snapshots --owner-ids
# Use five TAGS for a single AWS resource
aws ec2 create-tags --resources snap-1234567 --tags Key=Owner,Value=aaaaaa Key=Project,Value=pppppp Key=Application,Value=app1 Key=Environment,Value=PROD Key=Name,Value=AWS-US-East
Comments