Amazon VPC Operations: Difference between revisions
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
Properties: | Properties: | ||
[[Amazon_VPC_Concepts#Primary_IP_Address_Range_.28CIDR_Block.29|CidrBlock]]: !Ref PrimaryIPAddressRange | [[Amazon_VPC_Concepts#Primary_IP_Address_Range_.28CIDR_Block.29|CidrBlock]]: !Ref PrimaryIPAddressRange | ||
EnableDnsSupport: | [[Amazon_VPC_Concepts#DNS|EnableDnsSupport]]: true | ||
EnableDnsHostnames: Boolean | EnableDnsHostnames: Boolean | ||
InstanceTenancy: String | InstanceTenancy: String |
Revision as of 22:39, 9 April 2019
Internal
Overview
Create a VPC
Create a VPC with Amazon Console
VPC Console -> Your VPCs -> Create VPC:
Name tag: the name of the VPC
IPv4 CIDR block: 10.7.0.0/16
IPv6 CIDR block: No IPv6 CIDR Block
Tenancy: default
Create a VPC with CloudFormation
Resources: VPC: Type: AWS::EC2::VPC Properties: CidrBlock: !Ref PrimaryIPAddressRange EnableDnsSupport: true EnableDnsHostnames: Boolean InstanceTenancy: String Tags: - Resource Tag
Describe VPC
aws ec2 describe-vpcs --vpc-id <vpc-id>