Difference between revisions of "Cloudformation"
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
|+ Cloudformation template basic structure | |+ Cloudformation template basic structure | ||
|- | |- | ||
! YAML | |||
! JSON | ! JSON | ||
|- | |- | ||
|<source> | |||
AWSTemplateFormatVersion: 2010-09-09 | |||
Description: Yaml string, version 1.0 | |||
Metadata: {} | |||
Parameters: {} | |||
Mappings: {} | |||
Conditions: {} | |||
Transform: {} | |||
Resources: {} | |||
Outputs: {} | |||
</source> | |||
|<source> | |<source> | ||
{ | { | ||
| Line 19: | Line 30: | ||
} | } | ||
</source> | </source> | ||
|} | |||
= Structured template = | |||
{| class="wikitable" | |||
|+ Cloudformation template basic structure | |||
|- | |||
! YAML | |||
! JSON | |||
|- | |||
|<source> | |<source> | ||
AWSTemplateFormatVersion: 2010-09-09 | AWSTemplateFormatVersion: 2010-09-09 | ||
Description: | Description: JSON string | ||
Metadata: {} | Metadata: {} | ||
Parameters: | Parameters: | ||
InstanceTypeParameter: | |||
Type: String | |||
Default: t2.micro | |||
AllowedValues: | |||
- t2.micro | |||
- m1.small | |||
- m1.large | |||
Description: 'Enter t2.micro, m1.small, m1.large' | |||
Mappings: {} | Mappings: {} | ||
Conditions: {} | Conditions: {} | ||
| Line 29: | Line 56: | ||
Resources: {} | Resources: {} | ||
Outputs: {} | Outputs: {} | ||
</source> | </source> | ||
|<source> | |||
{ | |||
"AWSTemplateFormatVersion": "2010-09-09", | |||
"Description": "JSON string", | |||
"Metadata": {}, | |||
"Parameters": { | |||
"InstanceTypeParameter": { | |||
"Type": "String", | |||
"Default": "t2.micro", | |||
"AllowedValues": [ | |||
"t2.micro", | |||
"m1.small", | |||
"m1.large" | |||
], | |||
"Description": "Enter t2.micro, m1.small, m1.large" | |||
} | |||
}, | |||
"Mappings": {}, | |||
"Conditions": {}, | |||
"Transform": {}, | |||
"Resources": {}, | |||
"Outputs": {} | |||
} | } | ||
</source> | |||
|} | |||
Revision as of 07:29, 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.small
- m1.large
Description: 'Enter t2.micro, m1.small, m1.large'
Mappings: {}
Conditions: {}
Transform: {}
Resources: {}
Outputs: {}
|
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "JSON string",
"Metadata": {},
"Parameters": {
"InstanceTypeParameter": {
"Type": "String",
"Default": "t2.micro",
"AllowedValues": [
"t2.micro",
"m1.small",
"m1.large"
],
"Description": "Enter t2.micro, m1.small, m1.large"
}
},
"Mappings": {},
"Conditions": {},
"Transform": {},
"Resources": {},
"Outputs": {}
}
|