码迷,mamicode.com
首页 > 移动开发 > 详细

SAM Deploying a Hello World Application

时间:2019-10-04 00:21:45      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:div   make   with   serve   world   where   star   ref   sam   

#Make sure that the Region for this bucket aligns with where you deploy
aws s3 mb s3://bucketname --region region  # Example regions: us-east-1, ap-east-1, eu-central-1, sa-east-1

#Step 1 - Download a sample application
sam init --runtime python3.7

#Step 2 - Build your application
cd sam-app
sam build

#Step 3 - Package your application
sam package --output-template packaged.yaml --s3-bucket bucketname

#Step 4 - Deploy your application
sam deploy --template-file packaged.yaml --region us-west-2 --capabilities CAPABILITY_IAM --stack-name aws-sam-getting-started

https://docs.aws.amazon.com/zh_cn/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html?shortFooter=true

SAM Deploying a Hello World Application

标签:div   make   with   serve   world   where   star   ref   sam   

原文地址:https://www.cnblogs.com/cloudrivers/p/11620974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!