Taken from article: https://itnext.io/creating-aws-lambda-applications-with-sam-dd13258c16dd
sam package --template-file template.yaml --output-template-file package.yaml --s3-bucket test-sam-deploy-bucket
sam deploy --template-file package.yaml --stack-name my-sam-application --capabilities CAPABILITY_IAM
What you need is:
- CloudFormation yaml specification;
- SAM yaml specification;
- AWS SDK documentation for Lambda Function code;
links: