sam deploy --guided errors with "S3 Bucket does not exist"
See original GitHub issueDescription
Using sam deploy --guided
, the process fails with “Error: S3 Bucket does not exist.”
Steps to reproduce
- A developer deployed this stack using
sam deploy --guided --template-file realtime.yaml
. - Output: Deploying with following values =============================== Stack name : askAroundMe-realtime Region : us-east-1 Confirm changeset : False Deployment s3 bucket : aws-sam-cli-managed-default-samclisourcebucket-kll3li4nzc9r Capabilities : [“CAPABILITY_IAM”] Parameter overrides : {}
Initiating deployment
Error: S3 Bucket does not exist.
Provide steps to replicate.
The developer has also renamed the template to template.yaml to avoid the template parameter, with the same result. Then tried after deleting the toml file with the same result.
Observed result
sam deploy –guided Deploying with following values
Stack name : askAroundMe-realtime
Region : us-east-1
Confirm changeset : False
Deployment s3 bucket : aws-sam-cli-managed-default-samclisourcebucket-kll3li4nzc9r
Capabilities : ["CAPABILITY_IAM"]
Parameter overrides : {}
Initiating deployment
Error: S3 Bucket does not exist.
Expected result
The sam deployment should create a deployment bucket and complete.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS:
sam --version
:
Add --debug flag to command you are running
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
sam deploy - AWS Serverless Application Model
--resolve-s3, Automatically create an Amazon S3 bucket to use for packaging and deploying for non-guided deployments. If you specify the --guided option, then ......
Read more >Why S3 bucket is not getting created though it is mentioned in ...
Deploying AWS Lambda functions through AWS CloudFormation requires an Amazon Simple Storage Service (Amazon S3) bucket for the Lambda deployment ...
Read more >Tutorial: Deploying a Hello World application - 亚马逊云科技
This means that you are using an earlier version of the Amazon SAM CLI that does not support the --guided parameter. To fix...
Read more >SAM CLI Deployment error creating S3 Bucket - AWS re:Post
I'm trying to deploy the hello world app created with Quarkus following the guide ... I've also tried to pre-create the S3 bucket...
Read more >AWS SAM CLI Cheatsheet!. A quick cheat sheet for your friend…
sam deploy --guided → Deploy your application. $ sam local start-api → Host your ... sam validate → Verifies whether an AWS SAM...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In addition to the bucket, a sam deployment also creates two cloudformation stacks. One for keeping track of SAM CLI resources, and the other to track the app’s resources. Try deleting these as well.
Okay I see. This is what happened to me:
sam
sam deploy --guided
it told me it had found the necessary resources for deployment. Meaning, it found the stacksam deploy --guided
. This recreated the sam deployment bucket and deploy worked.