Amazon VPC Operations: Difference between revisions
Jump to navigation
Jump to search
Line 43: | Line 43: | ||
{{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-internetgateway.html AWS::EC2::InternetGateway]}} | {{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-internetgateway.html AWS::EC2::InternetGateway]}} | ||
Resources: | |||
InternetGateway: | |||
Type: AWS::EC2::InternetGateway | |||
Properties: | |||
Tags: | |||
- Resource Tag | |||
=Create a NAT Gateway= | =Create a NAT Gateway= | ||
* [[Create a NAT Gateway with Amazon Console]] | * [[Create a NAT Gateway with Amazon Console]] |
Revision as of 00:03, 10 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: false InstanceTenancy: "default" Tags: - Key: "Name" Value: !Ref VPCName
Describe VPC
aws ec2 describe-vpcs --vpc-id <vpc-id>
Create a Subnet
Create an Internet Gateway
Resources: InternetGateway: Type: AWS::EC2::InternetGateway Properties: Tags: - Resource Tag