CloudFormation Flashcards

1
Q

What is CloudFormation?

A

Manage, configure and provision AWS infrastructure as code

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

What formats can a CloudFormation document be in

A

YAML

JSON

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

Where is CloudFormation template uploaded

A

S3

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

Required part of CloudFormation Template

A

Resource section

resources you want AWS to create for you

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

What is the Transform section of CloudFormation code used for

A

reference additional code stored in S3 allowing for code reuse

or

SAM

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

Sections of CloudFormation Template

A
Parameters
Conditions
Resources
mappings (custom mapping like Regio:AMI)
Transform
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens if there are problems with the deploy of a CloudFormation template?

A

Rollsback automatically to previous stack

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

If want CloudFormation template to regularly update to map latest AMI ID how can you do that efficiently?

A

Use CloudFormation with Systems Manager Parameter Store to retrieve latest AMI ID for template. Put these in Parameter section of template. Whenever you update EC2 instances call update-stack API in CloudFormation in CloudFormation Template

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

CloudFormation Nested Stack

A

allow re-use of CloudFormation code for common use cases

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

How to create a nested stack in CloudFormation

A

Type: AWS:CloudFormation:Stack
TemplateURL: (url to template)

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

What is cfn-init used for?

A

Install packages and start/stop services on EC2 instances,

Install packages, start/stop services or create files

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

How to create, update, and delete stacks across multiple aws accounts and regions w/ one operation?

A

CloudFormation StackSets

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