Difference between revisions of "Cloudformation"
Jump to navigation
Jump to search
Line 48: | Line 48: | ||
AllowedValues: | AllowedValues: | ||
- t2.micro | - t2.micro | ||
- m1. | - m1.smal | ||
Description: 'Enter t2.micro, m1.large' | |||
Description: 'Enter t2.micro | |||
Mappings: {} | Mappings: {} | ||
Mapping01: | |||
Key01: | |||
Name: Value01 | |||
Key02: | |||
Name: Value02 | |||
Conditions: {} | Conditions: {} | ||
Transform: {} | Transform: {} | ||
Line 69: | Line 73: | ||
"AllowedValues": [ | "AllowedValues": [ | ||
"t2.micro", | "t2.micro", | ||
"m1.small | "m1.small" | ||
], | ], | ||
"Description": "Enter t2.micro, m1.small | "Description": "Enter t2.micro, m1.small" | ||
} | } | ||
}, | }, |
Revision as of 08:33, 18 July 2018
Basic structure of Json and Yaml templates
YAML | JSON |
---|---|
AWSTemplateFormatVersion: 2010-09-09 Description: Yaml string, version 1.0 Metadata: {} Parameters: {} Mappings: {} Conditions: {} Transform: {} Resources: {} Outputs: {} |
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "JSON string, version 1.0", "Metadata": {}, "Parameters": {}, "Mappings": {}, "Conditions": {}, "Transform": {}, "Resources": {}, "Outputs": {} } |
Structured template
YAML | JSON |
---|---|
AWSTemplateFormatVersion: 2010-09-09 Description: JSON string Metadata: {} Parameters: InstanceTypeParameter: Type: String Default: t2.micro AllowedValues: - t2.micro - m1.smal Description: 'Enter t2.micro, m1.large' Mappings: {} Mapping01: Key01: Name: Value01 Key02: Name: Value02 Conditions: {} Transform: {} Resources: {} Outputs: {} |
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "JSON string", "Metadata": {}, "Parameters": { "InstanceTypeParameter": { "Type": "String", "Default": "t2.micro", "AllowedValues": [ "t2.micro", "m1.small" ], "Description": "Enter t2.micro, m1.small" } }, "Mappings": {}, "Conditions": {}, "Transform": {}, "Resources": {}, "Outputs": {} } |