Cloudformation Flashcards

1
Q

What are the 5 parameter types for Cloudformation?

A
  • String
  • Number
  • CommaDelimitedList
  • List
  • AWS Parameter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you reference a parameter in the template?

A

use the !Ref function

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

What are the 6 Psuedo Parameters provided by AWS?

A
  • AccountId
  • NotificationARNs
  • NoValue
  • Region
  • StackName
  • StackId
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What should I do if an AWS resource is not supported in CLoudformation?

A

Use Lambda Custom Resources

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

How do you reference a value from another template?

A

Use the !ImportValue function

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

How do you make a value useable outside the template?

A

Export it in the Output section

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

What are the 7 Intrinsic functions available?

A
  • Ref
  • GetAtt
  • FindInMap
  • ImportValue
  • Join
  • Sub
  • Conditions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is UserData?

A

It is a bash script you can include in the template to run on instance boot.

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

What is cfn:init?

A

It is a helper script that reads metadata and is more readable/maintainable than UserData

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

How do you use UserData and cfn:init together?

A
  • UserData should update aws-cfn-bootstrap and start cfn init. cfn:init should install everything
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you ensure the cfn:init has run?

A

Use cfn-signal

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