Skip to content

Instantly share code, notes, and snippets.

@adhorn
Created May 3, 2018 11:34
Show Gist options
  • Select an option

  • Save adhorn/7413b7bcf3a0aeaa2446f6cb85b9a7c4 to your computer and use it in GitHub Desktop.

Select an option

Save adhorn/7413b7bcf3a0aeaa2446f6cb85b9a7c4 to your computer and use it in GitHub Desktop.
# Create subnet associated with the VPC
aws ec2 create-subnet --vpc-id vpc-xxxxxx --cidr-block 10.0.1.0/24 --region us-east-1
{
"Subnet": {
"AvailabilityZone": "us-east-1b",
"AvailableIpAddressCount": 251,
"CidrBlock": "10.0.1.0/24",
"DefaultForAz": false,
"MapPublicIpOnLaunch": false,
"State": "pending",
"SubnetId": "subnet-xxxxxx",
"VpcId": "vpc-xxxxxx",
"AssignIpv6AddressOnCreation": false,
"Ipv6CidrBlockAssociationSet": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment