CloudFormation Flashcards

1
Q

How do you use Fn::FindInMap?

A

!FindInMap [ MapName, TopLevelKey, SecondLevelKey ]

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

What values can Fn:Ref be used for, and what is returned?

A

Parameter - returns the value of that parameter
Resources - returns the physical ID of the resource

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

What does the Fn::GetAtt do?

A

Get the value of an attribute from a resource

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

What is Fn::ImportValue used for?

A

Import values that have been exported from other files

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

What does Fn:Join do?

A

Join values with a given delimiter

e.g., to get ‘a:b:c’ from [a,b,c] -> !Join [ “:”, [ a, b, c ] ]

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

What does Fn::Sub do?

A

Substitute variables from text

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

What are the conditional functions we can use?

A

Fn::And, Equals, If, Not and Or

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

When would you use a cross stack, and how would you do this?

A

When stacks have different lifecycles
- Use Outputs Export and Fn::ImportValue
- e.g., passing the VPC Id to other stacks.

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

When would you use a nested stack?

A

When components must be re-used

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

When would you use a nested stack?

A

When components must be re-used
- Re-use how to properly configure a load balancer
- The nested stack is only important to the parent stack

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

What is a StackSet?

A

A set of stacks which can be controlled from one location (i.e., can create, update or delete the stacks across multiple accounts and regions with a single operation)

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

What is CloudFormation Drift?

A

Manual configuration changes that are not recorded in the CloudFormation templates.

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

What section of the CloudFormation template is mandatory?

A

Resources

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