CloudFormation COPY COPY Flashcards

1
Q

What are the 6 Cloudformation template components nd what do they do?

A
  • Resources: The AWS resources you want
  • Parameters: Dynamic inputs to your template
  • Mappings: Static variables for your template
  • Outputs: References to what has been created
  • Conditionals: List of conditions to perform resource creation
  • MetaData
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 2 template helpers and what do they do?

A
  • References: Link variables in your template

- Functions: Transform data in the template

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

What form does the Resource type identifier come in?

A

AWS::aws-product-name::data-type-name
AWS::AutoScaling::ScalingPolicy

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

What 2 properties must all Resources have?

A
  • Type

- Parameters

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

What 5 data types are permitted for Parameter Types?

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

How can you reference parameters in the yaml template?

A

Use the Fn::Ref Function. In yaml it is “!Ref “

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

What is a Psuedo Parameter?

A

It is a parameter provided by AWS for any Cloudformation template.

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

What are the 6 Pseudo Parameters?

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

What are Cloudformation Mappings?

A

They are hardcoded fixed variables in the template

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

How do you access Mapping Values?

A

Use the Fn::FindInMap Function. It takes 3 values:

“!FindInMap [MapName, TopLevelKeyName, SecondLevelKeyName]”

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

What are CLoudformation Outputs?

A

Optional outputs we can export and then import into other stacks.

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

How do you reference an output in a different stack?

A

Use the Fn::ImportValue function. !ImportValue

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

What are the 5 logical functions available for conditionals?

A
  • Fn::And
  • Fn::Equals
  • Fn::If
  • Fn::Not
  • Fn::Or
How well did you know this?
1
Not at all
2
3
4
5
Perfectly