4

I am working on AWS lambda continuous integration and deployment. I have lambda's written in NodeJs and kept in Bitbucket repo. I am not able to find detailed tutorial or example to deploy those lambda's on AWS instance. AWS code pipeline source allows GitHub but not BitBucket. Any one has any idea how to do it. Please do share information or links if available.

3 Answers 3

2

You are right AWS code pipeline does not have bitbucket as the source provider.The option which looks possible is to configure bitbucket to copy the code to an AWS S3 bucket and then deploy the code from AWS S3. The source providers in AWS Code pipeline are:

  1. AWS S3
  2. AWS CodeCommit
  3. Github

You can use a zapier template to copy the bitbucket changes to S3.

Sign up to request clarification or add additional context in comments.

Comments

2

Another solution, which does not depend on any AWS services except Lambda, is to include a Lambda deployment tool from the Bitbucket Pipeline. For this, my weapon of choice would be Claudia.js. As Claudia.js is based on Node.js and you probably have Node already in your pipeline image, it should be pretty easy to get started with it.

2 Comments

Thanks! I used approach of pushing all code from bit bucket to S3 and then using AWS code pipeline to built and deploy code.
can you please provide an example? maybe documentation? I'm not very sure what am I doing wrong and the deployments doesn't worl for me. thanks
0

Now you can use Bitbucket Pipelines, here a useful tutorial to do that.

1 Comment

A quick and short answer is here medium.com/@Manishkumar9a9/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.