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 do I update tags/environment variables when deploying to elastic beanstalk? Edited

when I deploy an application to AWS Elastic Beanstalk using

- pipe: atlassian/aws-elasticbeanstalk-deploy:0.3.1

Is there a way to also update/create tags during the deployment?

Per instruction, I don't see a variable for tags.



1 answer

0 votes
Raul Gomis Atlassian Team Sep 05, 2019

Hi @bradyyuan ,

Thanks for reaching out! What is exactly your use case? What information would you be interested in adding? 



Hi Raul,

As we know, AWS elastic beanstalk is able to config environment variables for each service


Is there a way to update (add/modify) the variables using :

- pipe: atlassian/aws-elasticbeanstalk-deploy:0.3.1

during the deployment?


My application consumes those variables.  The environment variables contain sensitive information, such as access keys, secret keys, credentials and etc,.  Currently I manually update those values on Elastic Beanstalk.  It would be better that the bitbucket deployment script can update the Elastic Beanstalk environment variables automatically, so that I can define those secured values as the bitbucket repository variables or deployment variables.  As we know, the bitbucket pipeline can pick up the repository/deployment variables without any problem, but atlassian/aws-elasticbeanstalk-deploy:0.3.1 doesn't provide a way to update the Elastic Beanstalk environment variables.



Raul Gomis Atlassian Team Sep 09, 2019

Hi @bradyyuan ,

Thanks for the explanation. What is the exact use case you are trying to achieve? What type of information you pass to Elastic Beanstalk as environment variables? 

Also, is that something you need to want to configure / override dynamically and pass it on every pipe / pipeline execution? or is something you can configure once?

Don't know exactly all the details, but as setting up the environment is part of the infrastructure provisioning, I would use the aws-cloudformation-deploy pipe to setup and configure the Elastic Beanstalk Application and Environment (included environment variables). And then, I would use the aws-elasticbeanstalk-deploy pipe to perform just the deployment.

That would give you a full Infrastructure As a Code (IaC), in which your infrastructure definition would be defined as code. 



Suggest an answer

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

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,939 views 68 21
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