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
What is the recommended way to organize AWS resources into mulitple CloudFormation stacks?
By lifecycle and ownership .
This allows teams to group resources with similar lifecycles and to update them independently of other teams’ resources.
What is AWS Solutions Library?
Solutions created by AWS (or AWS Partners) for various common use cases, and vetted by AWS Architects.
They include aids like reference architectures, CloudFormation templates, deployment guides and scripts.
https://aws.amazon.com/solutions/
What is AWS Cloud
Development Kit (CDK)?
REV
A framework for using common programming languages to create and deploy CloudFormation templates.
Provides resources preconfigured according to best practices.
What does AWS Systems Manager enable?
AWS System Manager enables:
* Creation of logical groups of AWS resources.
* Observability and investigation of resource groups.
* Change management and change automation of resource groups.
https://docs.aws.amazon.com/systems-manager/latest/userguide/what-is-systems-manager.html
What is Elastic Beanstalk
- You just provide your code.
- Like Lambda for persistent applications
What is Amazon CodeWhisperer?
- Analyzes your comments and code in your IDE
- Generates code suggestions, including complete functions.
- Scans code for security vulnerabilities.