Advanced Template Development
Bearing in mind the basics of CloudFormation, let’s now move on to advanced development techniques.
In this chapter, we will learn more about the core parts of CloudFormation templates, and we will do so by building a three-tier application consisting of a web tier (our customer-facing frontend), a middleware tier (processing commands coming from the frontend), and a storage tier (the database where we will store records).
Figure 2.1 – Application architecture
Don’t worry! We’re not going to write any software yet (only templates for CloudFormation). For now, we will focus on provisioning our infrastructure.
We will cover the following topics in this chapter:
- Going through the internals of the template
- Creating reusable templates
- Using conditional elements
- Deletion policies
- Referring to existing stacks
- AWS pseudo parameters
- Dynamic references with AWS Systems...