Cloud Formation Flashcards
(32 cards)
In Cloud formation what describes the infrastructure in JSON or YAML?
Template
What is a Stack in CloudFormation?
Entire environment created by the template
What is a StackSet in CloudFormation?
Deploy stacks across accounts/regions
What is the benefit of a Change Set?
See changes before committing
What do logical ID’s point to in CloudFormation?
Resources within the template
What do Physical ID’s point to in CloudFormation?
Resources outside of CloudFormation
Which account is the Administrator Account in CloudFormation?
In the account you create the Cloud stack
What is the target account in CloudFormation?
The account resources are created
How do nested Stacks help?
Prevent copying stacks between accounts. They reference other stacks for reuse.
When will you use the Direct update stack method?
Immediate change
When will you use the Change Set method?
Preview change before execution
What does Drift detection do?
Informs if your infra has changed from the template
What is the Helper Script (cfn-init) used for?
Installing packages, parse meta data, start/stop services
Where do Helper Scripts logs get saved to?
/var/log/cfn-init.log
What is cfn-signal used for?
Signal CloudFormation when a script has finished running
What to do if you have problems with Help scripts?
Ensure helper script in AMI and check log files
When do you use the CloudFormation - CreationPolicy?
Use it to wait on a resource before stack creation proceeds
Which CloudFormation resources support creation policies?
AutoScaling, EC2, CloudFormation
What is the CloudFormation deletion policy used for?
Decide what happens to resources before they are deleted, e.g. backup
What deletion policy do you use if you want to keep a resource
Retain policy
What deletion policy do you use if you want to keep a snapshot of the resource?
Snapshot policy
What does deletion policy do by default?
removes/deletes resources
What does DependOn do in CloudFormation?
Waits for another resource to be built before creating the next resource
What does the WaitOn condition do in CloudFormation?
Use while waiting for external resource to be created