CloudFormation Flashcards

1
Q

What are main cloudformation templates components?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the cloudformation intrinsic functions?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When cloudformation performs a rollback?

A

When stack creation fails - everything rolls back
When stack update fails - rolls back to previous known working state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a cloudformation drift?

A

A drift happens when a resource defined in cloudformation is changed outside it. These changes are displayed on AWS console and can be undone.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly