SERVERLESS APPLICATION MODEL Flashcards

1
Q

SAM

A

allows deploy server application model

Framework: Deploy and code SAM
All code is YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SAM code

A

YAML Code

SAM YAML File, complex cloudformation code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cloudformation Support

A
Outputs
Mappings
Parameters
resources
etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Codedeploy and SAM

A

SAM can be use CodeDeploy to deploy lambda functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SAM and Local running programs

A

Help run
Lambda
API Gateway
DynamoDB locally from computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SAM recipe 1: Header

A

First item

Transform: ‘AWS::Serverless-2016-10-31’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SAM recipe 2: Code

A

AWS::Serverless::Function (lambda)
AWS::Serverless::API (Gateway API)
AWS::Serverless::SimpleTable (DynamoDB)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SAM recipe 3: Package and Deploy

A

AWS cloudformation Package / Sam Package

AWS cloudformation Deploy / Sam Deploy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Package/Deploy

A

Packages the local artifacts (local paths) that your AWS CloudFormation template references. The command uploads local artifacts, such as source code for an AWS Lambda function or a Swagger file for an AWS API Gateway REST API, to an S3 bucket. The command returns a copy of your template, replacing references to local artifacts with the S3 location where the command uploaded the artifacts.

Deploys the specified AWS CloudFormation template by creating and then executing a change set. The command terminates after AWS CloudFormation executes the change set. If you want to view the change set before AWS CloudFormation executes it, use the –no-execute-changeset flag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

SAM AWS DEF

A

INSTALL ONTO COMPUTER!

The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It provides shorthand syntax to express functions, APIs, databases, and event source mappings. With just a few lines per resource, you can define the application you want and model it using YAML.

All YAML
Complex cloudformation via YAML
Supports most items like Cloudformation: Outputs, mapping, parameters, resources etc

ONLY TWO COMMANDS TO DEPLOY INTO AWS

Sam can use code deploy to deploy lambda functions
** Run Lambda, API gateway, dynamoDB locally***

How well did you know this?
1
Not at all
2
3
4
5
Perfectly