Configuration Management & Infrastructure as Code Flashcards
What is CloudFormation
Amazon’s infrastructure as code solution which is written in either JSON or YAML.
Three CloudFormation Terms
- Stack - The resource group that one wants to manage as a single entity.
- Template - Document that specifies what to do. Can be used to both create and update the stack
- Stack Policy - A list of service.
Intrinsic Functions
Allows assigning functions to variables that are not available until runtime.
What is CloudFormation FindInMap - Intrinsic Map.
Allows the mapping of key-value pairs to be used at runtime.
CloudFormation FN:Base 64 Intrinsic
Returns the base64
FN:CIDR
Returns the number of blocked returned on the count value
FN:GetAtt
Getting the name of an attribute within a template.
FN:GetAZs
Returns the given AZ that are available.
FN:ImportValue
Returns the outpout values created by another stack
FN:Join
Allows to append multiple values to a single variable using delimited list of values
FN: Select
Allows one to reference a list array of items and then pick one of the items out based upon an index reference #.
FN: Split
Works with a string of variables and allows them to be separated and then possibly used select
FN: Sub
Used to subsitute variables on a variable.
FN: Transform
Specfies a macro to perform customer porcessing on a part of a stack template.
Ref
Simply provides a specified parameter or resource name.
Condition Functions
Allows you to create logic. This includes things like FN:AND FN:Equals FN:If FN:NOT FN:Or
CloudFormation DependsOn
This is used to make sure that a given resource is available before proceeding with a code.
Creating Policies
Prevents a resource status from reaching a complete
Wait Conditions & Handlers
Allows one to provide Usual relys on 4 coponetnts DependsOn Handle Property Time Out Count
What is Nesting?
Allows more complicated use and provides overcoming of inherit limitation of CloudFormation
What are Resource Deletion Policies
A means of defining actions upon compleion. Options include
Delete - Default - fully delted
Retain - Keeps the services after the template is delete. Could get messy
Snapshot - Only available on a few services like EC2. It takes a snapshot of resources and then deletes.
CloudFormation - Stack Updates
Stack policy - The
CloudFormation - Change Sets
When a cloud update is made– this allows to preview changes made to devices before implementation.
CloudFormation - Custom Resources
Allows to update things beyond the control of AWS like a REST API update to alternative systems.