SAM Deploying a Hello World Application

Posted Michael云擎的技术博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SAM Deploying a Hello World Application相关的知识,希望对你有一定的参考价值。

#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的主要内容,如果未能解决你的问题,请参考以下文章

Deploying an Application

QT-Deploying a Qt5 Application Linux

QT编译错误Error while building/deploying project

AWS SAM 中的 event.json 是啥?

Deploying Docker images via SSH

OperationError deploying gcloud function publish