How Can i integrate bitbucket server with AWS for deployment/ continuous integration/continuous deli

We have self hosted bitbucket server, in that we have to integrate only particular repo with AWS for deployment.

2 answers

Hi @Baskar, I've been working on this type of the implementation for the last few years.

In between, you will need a CI system in place, i recommend Bamboo since it's part of the ecosystem. Bamboo will check out the code from either Bitbucket Server or Cloud, build the package locally, then deploy to S3 bucket( Assume you will be using it). I use S3 as a repository to host the build artifact.

Once the artifact has been succuessfully pushed to S3, Bamboo can call the AWS instance via AWS RunCommand feature to trigger deployment which includes copy artifacts to the server and complete the deployment. If you are using Linux on AWS, you can even mount S3 bucket onto the system as a volume.

Alternatively, bamboo has AWS plugins, it works with various AWS services.

Hopefully it helps!

Ritchie

Hi @Baskar, I'm assuming that the bitbucket server is where you store your Git source repository and AWS is the target environment where the application needs to be deployed to.

In between these two environments, you will need a build/deploy solution. This can be either a self-hosted application like Jenkins (open-source) or Atlassian Bamboo or a hosted solution like Travis, CircleCI or CodeShip.

The build/deploy service is responsible for taking your code from BitBucket server, transforming it to the deliverable and deploying it to AWS.

Hope this helps!

Remie

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

690 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you