Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new deploy to s3, specify your own deploy bucket #456

Closed
teebu opened this issue Aug 6, 2018 · 2 comments · Fixed by #458
Closed

The new deploy to s3, specify your own deploy bucket #456

teebu opened this issue Aug 6, 2018 · 2 comments · Fixed by #458
Labels

Comments

@teebu
Copy link

teebu commented Aug 6, 2018

The new s3 deploy doesn't give you an option to deploy from a specific bucket, and creates a bucket for each function, this could get messy if you have a lot of functions.

I liked the ability to specify the bucket and key (maybe prefix option), because I use an IAM user with permissions to a specific deploy bucket.

So, there should be an option to specify the deploy bucket.

@teebu teebu changed the title The new deploy so s3, specify your own deploy bucket The new deploy to s3, specify your own deploy bucket Aug 6, 2018
@abetomo
Copy link
Contributor

abetomo commented Aug 7, 2018

You need to specify the bucket name for each target region.
I did not know the optimal way to specify the region and bucket name pair, so I created it automatically.
Please give me your advice if you have any ideas.

@teebu
Copy link
Author

teebu commented Aug 7, 2018

There really is no best way to do it, beside specifying the bucket per region in a config.

S3_US_EAST_1_BUCKET:east-deployer
S3_US_EAST_1_PREFIX:some/folder_for_my_lambdas/

S3_US_EAST_2_BUCKET:east-2-deployer
S3_US_EAST_1_PREFIX:some/folder_for_my_lambdas/

It's really dumb that Amazon doesn't let you deploy a lambda from S3 from any region if they're just using it as a data store. That is something we might have to ask / request from them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants