jaimerr
jaimerr

Reputation: 198

How can I use git/AWS CLI to manage AWS Lambda code?

I have approximately 10 microservices implemented as Node.js lambdas in AWS. What is the best way to manage them through git and the AWS CLI? I am currently editing them through the web interface but it is starting to be difficult to manage.

Upvotes: 3

Views: 943

Answers (3)

styfle
styfle

Reputation: 24610

Take a look at Vercel.

Not only can you deploy your functions with git push but the branch context is considered. For example, pushing to a PR branch creates a Preview deployment with a unique URL that represents your PR. Merging that PR to your main branch creates a Production deployment with your production domain.

There's even a free tier for Hobby projects so you can try it out yourself without any commitment.

Upvotes: 1

Anshul Verma
Anshul Verma

Reputation: 1091

I would very strongly suggest you to use Serverless!

It has made management and deployment so much easier for lambda architecture and additionally it also gives you ease of coding since it is a 'framework'

Upvotes: 4

Tom Melo
Tom Melo

Reputation: 1499

You can combine CloudFormation + CodeCommit + CodePipeline + CodeBuild for your version control and CI/CD. There's a heavy lift when using CloudFormation, but as soon as you get things up and running the process of deploying new Lambda versions becomes super easy.

Upvotes: 2

Related Questions