Skip to content

Latest commit

 

History

History
78 lines (54 loc) · 1.71 KB

README.md

File metadata and controls

78 lines (54 loc) · 1.71 KB

Sam poc

POC of using AWS SAM

Pre Requirements

Tech

New project

# press enter for the default options
sam init

Manual deployment

sam build
sam deploy --guided

or

Create bucket

aws s3api create-bucket --bucket my-bucket --region us-east-1

and

sam package --s3-bucket "bucket-name"
sam deploy --s3-bucket "bucket-name" --stack-name "stack-name" --capabilities CAPABILITY_IAM 

Run Local

Easy local running

sam local start-api

or

Invoke your lambda function directly

sam local invoke "HelloWorldFunction" -e events/event.json

or

Using debug with AWS Toolkit in VSCODE

Delete Stack

aws cloudformation delete-stack --stack-name sam-poc --region region

Continuous delivery

Configure via AWS console.