CloudFormation Flashcards
What is CloudFormation?
CloudFormation is a declarative way of outlining your AWS Infrastructure, for any resources (most of them are supported).
In what order does CloudFormation create the resources defined in the stack?
The order in the file is not important. CloudFormation creates the resources for you in the right order with the exact configuration that you specify
What is provided by CloudFormation to help you with cost insights?
Each resource within the stack is tagged with an identifier so you can easily see how much a stack costs you
What saving strategy can you use in CloudFormation?
In Dev i.e., you could automation deletion of templates at 5 PM and recreated at 8 AM, safely
Where are CloudFormation templates stored?
In S3
What you need to do to update a CloudFormation template?
To update a template, we can’t edit previous ones. We have to reupload a new version of the template to AWS
What happens when you delete a CloudFormation stack?
Deleting a stack deletes every single artifact that was created by CloudFormation
What are the CloudFormation template components?
- Resources
- Parameters
- Mappings
- Outputs
- Conditionals
- Metadata
What are the CloudFormation template helpers?
- References
- Functions
What CloudFormation component is mandatory?
Resources
What is CloudFormation Resource identifiers format?
AWS::aws-product-name::data-type-name
What is a CloudFormation Resource?
- Resources are the core of your CloudFormation template (MANDATORY)
- They represent the different AWS Components that will be created and configured
Can I create a dynamic amount of resources in CloudFormation?
No, you can’t. Everything in the CloudFormation template has to be declared. You can’t perform code generation there
Is every AWS Service supported by CloudFormation?
o Almost. Only a select few niches are not there yet
o You can work around that using AWS Lambda Custom Resources
What is a CloudFormation Parameter?
Parameters are a way to provide inputs to your AWS CloudFormation template
How many times can you use a CloudFormation Parameter?
Parameters can be used anywhere in a template
If a CloudFormation resource configuration is likely to change in the future, what you should do?
make it a parameter, you won’t have to re-upload a template to change its content
What can you use if some inputs cannot be determined ahead of time in CloudFormation?
parameters
How can you prevent errors from happening in your CloudFormation Parameters?
Using types
What are the CloudFormation Parameter’s types?
o String o Number o CommaDelimitedList o List o AWS Parameter
What are CloudFormation Pseudo Parameters?
- AWS offers us pseudo parameters in any CloudFormation template.
- These can be used at any time and are enabled by default