0

I want to get started with zappa framework, but when I'm running init zappa I got this notification: enter image description here

How to disable autocreate s3 bucket?

SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87

2 Answers2

0

You can't. Zappa first uploads your .zip file to a bucket and from there does the deployment.

From the official repo:

Zappa will automatically package up your application, [...] upload the archive to S3, create and manage the necessary Amazon IAM policies and roles, register it as a new Lambda function, create a new API Gateway resource, create WSGI-compatible routes for it, link it to the new Lambda function, and finally delete the archive from your S3 bucket. Handy!

So your option is to dig into Zappa and circumvent this on your own or perhaps try Chalice that does the upload directly.

mislavcimpersak
  • 2,880
  • 1
  • 27
  • 30
0

@mislav is correct that Zappa does need an S3 bucket. But one only gets auto-created if you don't specify one. Simply provide a valid bucket name at the prompt, and Zappa will use that bucket instead of creating one for you.

Mike Patrick
  • 10,699
  • 1
  • 32
  • 54