Amazon VPC Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:


  Resources:
  Resources:
   Type: AWS::EC2::VPC
   VPC:
  Properties:  
    Type: AWS::EC2::VPC
    CidrBlock: String
    Properties:  
    EnableDnsSupport: Boolean
      CidrBlock: String
    EnableDnsHostnames: Boolean
      EnableDnsSupport: Boolean
    InstanceTenancy: String
      EnableDnsHostnames: Boolean
    Tags:
      InstanceTenancy: String
      - Resource Tag
      Tags:
        - Resource Tag


=Describe VPC=
=Describe VPC=

Revision as of 22:21, 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

AWS::EC2::VPC
Resources:
  VPC:
    Type: AWS::EC2::VPC
    Properties: 
      CidrBlock: String
      EnableDnsSupport: Boolean
      EnableDnsHostnames: Boolean
      InstanceTenancy: String
      Tags:
        - Resource Tag

Describe VPC

aws ec2 describe-vpcs --vpc-id <vpc-id>

Create a Subnet

Create a NAT Gateway