0

How can I setup aws codepipeline with aws code commit + aws code build + elastic beanstalk without using jenkins, teamcity or any other 3rd party tool?

Dave Maple
  • 6,982
  • 3
  • 39
  • 59
mahendra rathod
  • 758
  • 6
  • 16

1 Answers1

4

If you take parts of two solutions I put together, you should be able to come up with a comprehensive solution for Elastic Beanstalk, CodePipeline, CodeCommit, and CodeBuild.

I wrote a post on using CodeCommit and CodePipeline with Elastic Beanstalk here: Create a Pipeline for Elastic Beanstalk in CodePipeline using CloudFormation and CodeCommit. In it, I'm using the example Node.js app from AWS. The associated launch stack and code is here.

I wrote about CodeBuild, CodePipeline, CodeCommit, and CodeDeploy integration at Deploy to Production using AWS CodeBuild and the AWS Developer Tools Suite. The code for the post is described at CodeBuild and AWS Developer Tools Suite Lab.

Depending on which programming language you're using to configure and deploy your application, you'll use a different CodeBuild curated environment. To see a list of CodeBuild examples, go to CodeBuild samples. There's a specific one for Elastic Beanstalk for Java here.

Ultimately, you'll need to use CodeBuild to generate the ZIP file that Elastic Beanstalk uses. You orchestrate this CodeBuild action in CodePipeline and use the OutputArtifacts generated in your CodeBuild stage/action as an InputArtifacts to your ElasticBeastalk deploy action. As you see from the examples, everything can be defined in AWS CloudFormation. Hope this helps.

Paul Duvall
  • 696
  • 6
  • 4