Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

check if vpc id exists

aws ec2 wait vpc-exists --vpc-ids vpc-06e4ab6c6cEXAMPLE # Returns nothing if the VPC exists
aws ec2 wait vpc-available --vpc-ids vpc-06e4ab6c6cEXAMPLE # Returns nothing if the VPC exists

# OR
aws ec2 describe-vpcs --vpc-ids vpc-06e4ab6c6cEXAMPLE
Source by docs.aws.amazon.com #
 
PREVIOUS NEXT
Tagged: #check #vpc #id #exists
ADD COMMENT
Topic
Name
4+8 =