forked from talentedmrjones/cloudformation-deep-dive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02a_basic-vpc.yml
39 lines (36 loc) · 843 Bytes
/
02a_basic-vpc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
AWSTemplateFormatVersion: "2010-09-09"
Description: "/16 VPC with 1 /20 subnet"
Resources:
Vpc: # logical ID
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
Tags:
- Key: Name
Value: basic-vpc
subnetA:
Type: AWS::EC2::Subnet
Properties:
AvailabilityZone: us-west-1c
CidrBlock: 10.0.0.0/20
MapPublicIpOnLaunch: true
VpcId:
Ref: Vpc #long form reference
Tags:
- Key: Name
Value: DMZ-C
- Key: Scope
Value: public
subnetB:
Type: AWS::EC2::Subnet
Properties:
AvailabilityZone: us-west-1b
CidrBlock: 10.0.16.0/20
MapPublicIpOnLaunch: true
VpcId: !Ref Vpc # short form reference
Tags:
- Key: Name
Value: DMZ-B
- Key: Scope
Value: public