Cloudformation Flashcards Preview

AWS Developer Associate 2019 > Cloudformation > Flashcards

Flashcards in Cloudformation Deck (37)
Loading flashcards...
1
Q

____ is a service that allows you to manage, configure, and provision your AWS infrastructure as code.

A

Cloudformation

2
Q

_____ are defiened using a Cf template

A

resources

3
Q

CF integrates the template and makes the appropriate ____ calls to create the resources you have defined.

A

API

4
Q

Cloudformation supports ____ and ____.

A

Yaml and JSON

5
Q

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.
A

All of the above

6
Q

___ or ____ template is used to describe the endstate of the infra you are either provisioning or changing

A

Yaml or Json

7
Q

After creating the template, you upload it to CloudFormation using ____

A

S3

8
Q

CF reads the templates and makes ___ calls on your behalf

A

API

9
Q

The resulting resources are called a _____

A

stack

10
Q

Put the CF template structure in order-

InstanceID:

Value: !Ref EC2 Instance

Outputs:

Description: The Instance ID

A

Outputs:

InstanceID:

Description: The Instance ID

Value: !Ref EC2 Instance

11
Q

____ is the only mandatory section of the CF template

A

resources

12
Q

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.

A

Transform

13
Q

_____ an extension to CF to define serverless apps

A

(SAM) Serverless Application model

14
Q

T or F

SAM provides simplified syntax for defining serverless resources: APIs, Lambda Functions, DynamoDB Tables, etc.

A

True

15
Q

Use the SAM ____ to package your deployment code; upload it to S3 and deploy your serverless app.

A

CLI

16
Q

SAM CLI commands

A

sam pacakge \

–template-file ./mytemplate.yml

–output -template -file sam-template.yml\

–s3-bucket s3-bucket-name

17
Q

SAM Deploy Commands

A

–template-file sam-template.yml\

–stack-name mystack\

–capabilities CAPABILITY_IAM

18
Q

SAM = ___ ____ ____

A

serverless application model

19
Q

SAM allows you to define and privision serverless apps using ____

A

CloudFormation

20
Q

SAM uses the SAM ____ commands to package and deploy:

SAM ____: packages your app and uploads to S3

SAM ____: deploys your serverless app using CF

  1. deploy
  2. CLI
  3. package
A

CLI; package;deploy

21
Q

CF Nested stacks

Allow _____ of code for common use cases

ie: standard config for a LB, web server, app server, etc.

A

Re-use

22
Q

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 _____.

A

template

23
Q

____ ____ allow you to resuse CF code so you don’t need to copy/paste every time.

A

nested stacks

24
Q

nested stacks are really useful for ___ used configs

ie: for LB, web app servers.

A

frequently

25
Q

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.

A

resource

26
Q

with CF, _____ is provisioned consistently, with fewer mistakes

A

infrastructure

27
Q

with CF, less time and effort than configuring things _____

A

manually

28
Q

you can ____ control and peer review your CF templates

A

version

29
Q

CF is free to use

T or F

A

T

30
Q

Cf can be used to manage ____ and dependencies

A

updates

31
Q

CF can be used to rollback and delete the entire ____ as well

A

stack

32
Q

after creating your CF template, upload it to CF using ____

A

s3

33
Q

t r F

CF reads the template and make the API calls on your behalf

A

T

34
Q

the resulting CF resources are called a ____

A

stack

35
Q

_____ is a set of values based on a region

A

mapping

36
Q

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.

A

Transform

37
Q

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

A

parms

conditions

resources

mappings

transforms