From the course: AWS CloudFormation for Beginners

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Review a simple template

Review a simple template

From the course: AWS CloudFormation for Beginners

Start my 1-month free trial

Review a simple template

- The best way to understand cloud formation is to analyze a simple cloud formation template. Let's review this template which creates a static HTML website using the Amazon S3 service. Like every template, it starts with a version and a description. Template versions are set based on the format being used by the developer, and they rarely change. A description field is just text and can be used to provide any information to the user. Next is the list of resources. Each resource defines several elements. First is a logical name, this is the name that we can use to reference this resource or its properties inside the cloud formation template. Our S3 bucket here is simply named S3Bucket. In every resource, the first property that we define is called a type, which defines the type of the resource, in this case, the S3 bucket. Next, we define properties, if you look to the right, for an S3 bucket, these properties include an access control policy and a website configuration. Here, we have…

Contents