Cloudformation Flashcards
____ is a service that allows you to manage, configure, and provision your AWS infrastructure as code.
Cloudformation
_____ are defiened using a CloudFront template
Resources
CF integrates the template and makes the appropriate ____ calls to create the resources you have defined.
API
Cloudformation supports ____ and ____.
Yaml and JSON
WHich of the following are CF benefits:
- Infra is provisioned consistently, with fewer mistakes
- Less time and effort than configuring things manually
- You can version control and peer review your templates
- FRee to use (charged for what you create)
- Can be used to manage updates and dependencies
- CAn be used to rollback and delete teh entire stack as well.
All of the above
___ or ____ template is used to describe the endstate of the infra you are either provisioning or changing
Yaml or Json
After creating the template, you upload it to CloudFormation using ____
S3
CF reads the templates and makes ___ calls on your behalf
API
The resulting resources are called a _____
stack
Put the CF template structure in order-
InstanceID:
Value: !Ref EC2 Instance
Outputs:
Description: The Instance ID
Outputs:
InstanceID:
Description: The Instance ID
Value: !Ref EC2 Instance
____ is the only mandatory section of the CF template
Resources
Remember the ____ section is used to reference additional code stored in S3, allowing for code re-use
ie: for Lambda code or template snippets/reusable pieces of CF code.
Transform
_____ an extension to CF to define serverless apps
(SAM) Serverless Application model
T or F
SAM provides simplified syntax for defining serverless resources: APIs, Lambda Functions, DynamoDB Tables, etc.
True
Use the SAM ____ to package your deployment code; upload it to S3 and deploy your serverless app.
CLI
SAM CLI commands
sam pacakge \
–template-file ./mytemplate.yml
–output -template -file sam-template.yml\
–s3-bucket s3-bucket-name
SAM Deploy Commands
–template-file sam-template.yml\
–stack-name mystack\
–capabilities CAPABILITY_IAM
SAM = ___ ____ ____
serverless application model
SAM allows you to define and privision serverless apps using ____
CloudFormation
SAM uses the SAM ____ commands to package and deploy:
SAM ____: packages your app and uploads to S3
SAM ____: deploys your serverless app using CF
- deploy
- CLI
- package
CLI; package;deploy
CF Nested stacks
Allow _____ of code for common use cases
ie: standard config for a LB, web server, app server, etc.
Re-use
CloudFormation Nested Stack
instead of copying out the code each time, create a standard ____ for each common use case and reference from within your CF _____.
template
____ ____ allow you to resuse CF code so you don’t need to copy/paste every time.
nested stacks
nested stacks are really useful for ___ used configs
ie: for LB, web app servers.
frequently
Nested Stacks
simple create a CF template, store it in S3, and you can reference it in the ____ section of any CD template using the stack _____ type.
resource
AWS cloudformation ___ ____ can be used to detect changes made to aws resources outside the CF templates. AWS CF ___ ____ only checks property values that are explicitly set by stack templates or by specifying template parameters. It does not determine drift for property values that are set by default. To determine drift for these resources, you can explicitly set property values which can be the same as that of the default value. +
drift detection