Cloudformation Flashcards

1
Q

Cloudformation Templates

A
  • can’t edit previous template, have to re upload a new version
  • stacks identified by name
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cloudformation components

A
  • components
    • resources
    • parameters - dynamic inputs for your templates
      • reuse templates across accounts, etc.
      • good for keypairs, etc.
      • wont have to re upload template to change it
      • reference parameters with !Ref <par></par>
      • aws pseudo parameters - builtin env variables like arn, region, etc.
    • mappings - static vars
      • good for hardcoded vars specific to an env
    • outputs - references to what has been created
      • optional
      • if exported then you can import them into other stacks
      • can view outputs in aws console or aws cli
      • good for vpc IDs and your subnet IDs
      • you can’t delete a stack if its outputs are referenced by another stack
      • !ImportValue <val></val>
    • conditionals - list of conditions to perform resource creation
    • metadata
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Templates get uploaded to..?

A

S3

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

Cloudformation resources are created in the order you specify?

A

False

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

You’re trying to delete a CloudFormation stack, but you can’t because other CloudFormation stacks reference its exported outputs. What should you do

A

First, you need to delete the other CloudFormation stacks that reference the exported outputs, then delete it

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

Exported output names must be unique within your..?

A

Region

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

lambda in cloudformation

A

defined either completely inline (no dependencies) or all as a zip in s3 then referenced in template

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