April 2018
Intermediate to advanced
280 pages
8h 37m
English
A CloudFormation template is a text file that defines what resources are to be created in the AWS stack and their attributes. This template is written in either the JavaScript Object Notation (JSON) or the YAML format. You can edit them in any text editor and also manage them with your source control system such as git, svn, and so on.
The template must declare an object as a name-value pair along with the set of child objects (if any). Let's look at a simple template that creates an S3 bucket.
The following template declares a single resource of type AWS::S3::Bucket: with the name PACKTPUB-BUCKET.
The JSON format is as follows:
{
"Resources" : {
"PACKTPUB-BUCKET" : {
"Type" : "AWS::S3::Bucket"
}
}
}The YAML ...