forked from talentedmrjones/cloudformation-deep-dive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01_anatomy.yml
33 lines (28 loc) · 784 Bytes
/
01_anatomy.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
---
AWSTemplateFormatVersion: "2010-09-09"
Description: "Describes this template"
Parameters:
# parameters allow us to specify values at run time
Environment:
Type: String
Default: dev
AllowedValues:
- dev
- stage
- uat
- prod
Resources:
# list of AWS resources we want created or updated
MyVPC: # logical ID
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
Mappings:
# collection of nested key/value pairs
# allows us to MAP one value to another value
Conditions:
# statements that determine when a resource is created or when a property is defined
# eg dev vs prod
Outputs:
# declares values to be made readily available after creation/update
# eg. explicitly show DNS endpoint of ELB or RDS instance