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

Upload lambda to a S3 bucket? #29

Open
phstc opened this issue Jul 3, 2018 · 0 comments
Open

Upload lambda to a S3 bucket? #29

phstc opened this issue Jul 3, 2018 · 0 comments

Comments

@phstc
Copy link

phstc commented Jul 3, 2018

This is more of a question.

For using Lambda nodejs8.10, we need to upload the lambda zip file to a S3 bucket.

For zipping the lambda files, upload etc, I'm overriding the create and update commands as follows:

desc 'create',  'create stack'
def create
  zip_and_upload
  super
end

desc 'update', 'update stack'
def update
  zip_and_upload
  super
end

What happens with that, is that I need to create the bucket in another stack, so I have it ready to go before creating the lambda stack.

Is there a way to get the bucket altogether with the lambda stack? Like doing some sort of the after_bucket hook, which after creating the bucket I can zip and upload, but before creating the lambda?

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

No branches or pull requests

1 participant