Skip to content

Commit

Permalink
add totalExecutionTimeout parameter to deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcasalboni committed Jun 10, 2020
1 parent 69b0513 commit 1724ad2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ BUCKET_NAME=your-sam-templates-bucket
STACK_NAME=lambda-power-tuning
PowerValues='128,256,512,1024,1536,3008'
LambdaResource='*'
TotalExecutionTimeout="300"

# package
sam package --s3-bucket $BUCKET_NAME --template-file template.yml --output-template-file packaged.yml

# deploy
sam deploy --template-file packaged.yml --stack-name $STACK_NAME --capabilities CAPABILITY_IAM --parameter-overrides PowerValues=$PowerValues lambdaResource=$LambdaResource
sam deploy --template-file packaged.yml --stack-name $STACK_NAME --capabilities CAPABILITY_IAM --parameter-overrides PowerValues=$PowerValues lambdaResource=$LambdaResource totalExecutionTimeout=$TotalExecutionTimeout

0 comments on commit 1724ad2

Please sign in to comment.