CloudFormation Flashcards
What are main cloudformation templates components?
Resources
* Represent AWS components
Parameters
* provide inputs to the AWS templates
Mappings
* dict
Outputs
* declares optional outputs values that we can import into other stacks
Conditions
* controls the creation of resources based on conditions
What are the cloudformation intrinsic functions?
Fn::Ref
* reference parameter - returns the value
Fn::GetAtt
* get attribute of a resource
Fn::FindInMap
* return a value from a specified key
Fn::Join
* join values with a delimiter
Fn::Sub
* substitutes value
When cloudformation performs a rollback?
When stack creation fails - everything rolls back
When stack update fails - rolls back to previous known working state
What is a cloudformation drift?
A drift happens when a resource defined in cloudformation is changed outside it. These changes are displayed on AWS console and can be undone.