Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple AWS environment variables for different branches

Deleted user April 2, 2018

Hi all, 

I am following the steps mentioned in https://confluence.atlassian.com/bitbucket/deploy-to-amazon-aws-875304040.html

But I have multiple branches and separate EBS application for each branch.  

Assuming I have two branch.  I will add two set of configuration in bitbucket-pipelines.yml but how to configure separate set of AWS environment variables for each branch. 

Many Thanks

Abhishek Upadhyay

1 answer

0 votes
Deleted user April 3, 2018

I found the answer and steps are simple:  Create separate beanstalk_deploy_<branch>.py file for each branch. Mention the file name in bitbucket-pipelines.yml for corresponding branch.  Add branch specific AWS environment variables in bitbucket online. Use the AWS env variables in beanstalk_deploy_<branch>.py

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events