General Flashcards
SAM
Server Application Model
what is it
what language
capabilities
Framework for develop and deploy serverless applications
All is in YAML CODE; its actually Cloudformation Code
From Simple YAML we generate complex cloudformation code
Can support Cloudformation:
Output, mapping, parameters, resources
Two commands to deploy
Capabilities:
Use codedeploy to deploy lambda functions
Run lambda, api gateway, dynamodb locally.
SAM
Server Application Model
anatomy
Code looks like the following
- Transform header
transform: ‘aws::serverless-2016-10-31’ - write code
aws: :serverless:function
ApplicationStop
1
Stop application, remove current packages in prep of deployment and/or gracefully stop app
APPSEC and scripts are used for this, from last successful revision
DownloadBundle
2
Agent copies revision files to a temp location, RESERVED for AGENT, dont run user scripts
before install
3
Decrypt files, create a backup
install
4
temp files are copied to destination folder, RESERVED for agent, NO SCRIPTS FROM USER
AFTERINSTALL
5
Deployment of tasks
CHANGE FILE PERMISSIONS
CONFIGURE APP
application start
6
RESTART SERVICES THAT WERE STOPPED
validate service
Verify deployment.