Amazon VPC Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
=VPC Operations= | =VPC Operations= | ||
=Create a VPC= | ==Create a VPC== | ||
==Create a VPC with Amazon Console== | ==Describe VPC== | ||
aws ec2 describe-vpcs --vpc-id <''vpc-id''> | |||
===Create a VPC with Amazon Console=== | |||
VPC Console -> Your VPCs -> Create VPC: | VPC Console -> Your VPCs -> Create VPC: | ||
Line 20: | Line 24: | ||
Tenancy: default | Tenancy: default | ||
==Create a VPC with CloudFormation== | ===Create a VPC with CloudFormation=== | ||
{{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html AWS::EC2::VPC]}} | {{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html AWS::EC2::VPC]}} | ||
Line 36: | Line 40: | ||
Value: !Ref VPCName | Value: !Ref VPCName | ||
= | =Create a Subnet= | ||
=Internet Gateway Operations= | |||
==Describe an Internet Gateway== | |||
aws ec2 describe-internet-gateways [--internet-gateway-ids igw-0f8b5a9295a707d16] | |||
=Create an Internet Gateway= | =Create an Internet Gateway= |
Revision as of 00:08, 10 April 2019
Internal
Overview
VPC Operations
Create a VPC
Describe VPC
aws ec2 describe-vpcs --vpc-id <vpc-id>
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: false InstanceTenancy: "default" Tags: - Key: "Name" Value: !Ref VPCName
Create a Subnet
Internet Gateway Operations
Describe an Internet Gateway
aws ec2 describe-internet-gateways [--internet-gateway-ids igw-0f8b5a9295a707d16]
Create an Internet Gateway
Resources: InternetGateway: Type: AWS::EC2::InternetGateway Properties: Tags: - Resource Tag