Prakash26790
Prakash26790

Reputation: 787

Continuous Deployment using Jenkins and Opswork integration

I am trying to setup Continuous deployment using jenkins and OpsWorks. I have configured Jenkins but I dont know how to integrate Jenkins with OpsWorks to auto deploy using Chef Cookbook. Is there any plugin available for OpsWorks and Jenkins integration?(I think there is no plugin available from AWS. I dont know why....).

Can I have some steps/suggestoins to write chef cookbook to integrate OpsWorks with Jenkins?

Upvotes: 2

Views: 1411

Answers (3)

iviarki
iviarki

Reputation: 131

You can now integrate OpsWorks into a CodePipeline: https://aws.amazon.com/about-aws/whats-new/2016/06/aws-codepipeline-adds-integration-with-aws-opsworks/

This lets you automate the release of updated application code and Chef cookbooks to your applications and instances running in OpsWorks.

This allows you to implement CD into your OpsWorks stack, with or without Jenkins.

Upvotes: 1

Nikunj Ranpura
Nikunj Ranpura

Reputation: 95

If you want to do continuous deployment then you can use AWS CodeDeploy also instead of Jenkins.

Upvotes: 1

mcheshier
mcheshier

Reputation: 745

I do this by calling the CLI tool in a Jenkins project. Something like this:

aws opsworks --region us-east-1 create-deployment --stack-id <your id> --app-id <your app id> --command "{\"Name\":\"deploy\"}"

You can find the IDs in your stack configuration.

Upvotes: 4

Related Questions