Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a pipeline in bit-bucket to deploy in test and production environments of beanstalk ?



I want to create a pipeline in bitbucket to deploy(.zip file) in Elastic Beanstalk. I have two environments (Test and production), so when a developer push to the test branch the pipeline will make a zip file and deploy it in the test environment, and when we push code to the production branch bitbucket pipeline will deploy it in the production branch. 

Can we configure like this in a bitbucket pipeline?  




2 answers

0 votes

Hi @msk134 ,

Have you explored using the AWS Elastic Beanstalk deploy pipe?  As @Oleksandr Kyrdan suggested you can use deployment variables to define `ENVIRONMENT_NAME` to be either test or production environment.


Justin Thomas

I saw that AWS Elastic Beanstalk deploy pipeline configuration. It is a good understanding to run pipelines. As you said define deployment variables in the pipeline, Can I run both environments in a single pipeline configuration(test and production)?




0 votes

Hi @msk134 ,

Thank you for your question!

It's a good case for the Bitbucket Pipelines Deployments.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

106 views 2 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you