Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OWNER=ciberadok8s
- VPC=$(aws ec2 create-vpc --cidr-block10.10.0.0/16 --query "Vpc.VpcId" --output text)
- aws ec2 create-tags --resources $VPC --tags "Key=Name,Value=$OWNER-vpc"
- IGW=$(aws ec2 create-internet-gateway --query "InternetGateway.InternetGatewayId" --output text)
- aws ec2 create-tags --resources $IGW --tags "Key=Name,Value=$OWNER-vpc"
- aws ec2 attach-internet-gateway --internet-gateway-id $IGW --vpc-id $VPC
- SUBNET=$(aws ec2 create-subnet --vpc-id $VPC --cidr-block 10.10.1.0/24 --query Subnet.SubnetId --output text)
- aws ec2 create-tags --resources $SUBNET --tags "Key=Name,Value=$OWNER-vpc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement