8. Automation Flashcards
Term for using code to define, deploy, configure, update, and remove infrastructure
Infrastructure as Code
(IaC)
Name four benefits of IaC
- Speed & Safety
- Reusability
- Versioning & documentation
- Validation
What is the AWS IaC service?
CloudFormation
Where is CloudFormation IaC code stored?
In template files.
Those files should be stored in a repository.
CloudFormation templates can be written in what formats?
JSON & YAML
Like the CLI and Console, running a CloudFormation template does it’s work via ____________ .
API calls to AWS services
Is there a cost for using CloudFormation?
No, only for the resources you create with it.
How are environment-specific details configured when using CloudFormation?
By defining parameters in the template file.
How can manually-created resources be added to CloudFormation control?
CloudFormation’s
resource import
The three things you work with in CloudFormation:
- Templates
- Stacks
- Change Sets
What is a CloudFormation stack?
Related resources managed as a single unit.
Can a CloudFormation stack be partially created?
No. All stack resources must all be created successfully.
If a stack resource can’t be created, CloudFormation rolls the stack back and
deletes any other resources that were created.
How do you modify an existing CloudFormation stack?
- Run a modified template
and/or - Provide new parameter values at runtime.
What is a CloudFormation
change set ?
The diff CloudFormation generates when changes are submitted for an existing stack.
How are cross-stack references created in CloudFormation?
Through Outputs
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html