Cloudformation Flashcards
____ is a service that allows you to manage, configure, and provision your AWS infrastructure as code.
Cloudformation
_____ are defiened using a Cf 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
with CF, _____ is provisioned consistently, with fewer mistakes
infrastructure
with CF, less time and effort than configuring things _____
manually
you can ____ control and peer review your CF templates
version
CF is free to use
T or F
T
Cf can be used to manage ____ and dependencies
updates
CF can be used to rollback and delete the entire ____ as well
stack
after creating your CF template, upload it to CF using ____
s3
t r F
CF reads the template and make the API calls on your behalf
T
the resulting CF resources are called a ____
stack
_____ is a set of values based on a region
mapping
The ____ section of CF is used to reference additional code stored in s3, allowing for code re-ues. ie: for lambda codde or tempalte snippets/reusable pieces of CF code.
Transform
mappings, conditions, resources, parameters, transforms
input custom values
provision resources based on env
mandatory - the aws resources to create
create custom mappingss like region :AMI
reference code located in S3 ie: lambda code or reusable snippets of CF code
parms
conditions
resources
mappings
transforms