I have a question about this topic https://support.atlassian.com/bitbucket-cloud/docs/deploy-to-aws-with-s3/
Is clear the way to update a lambda source, but i need update source with a zip in s3 not in the repository, is possible?
thank.
@Mauricio Nicolás Quezada Valdivia let us understand your question clear. I have now 3 variants what you might want:
- you have s3 bucket and have zip file there and want to update it? Then you can use aws s3 deploy pipe, but just with a simple zip file, but zip what you need before to the zip archive.
- or you have zip file locally and you want to deploy to lambda from your zip file? Then just use lambda deploy basic examples: https://bitbucket.org/atlassian/aws-lambda-deploy/src/master/README.md
- or you have s3 bucket and zip there and you want to deploy to lambda from s3 bucket? Then you can use aws-sam-deploy pipe for that.
Check out readme https://bitbucket.org/atlassian/aws-sam-deploy/src/master/
NOTE!!
If to go into detail of that readme and for example, you want to upload the code first from from serverless app folder, just use default examples without passing COMMAND variable to the pipe.
if you want to just deploy from s3 bucket without packaging to s3 bucket, use sam-deploy pipe with COMMAND: deploy-only, and construct a proper template where at CodeUri field you can put s3 bucket arn.
Here is the doc for constructing it https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-template-publishing-applications.html
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.