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

Make atlassian/aws-elasticbeanstalk-deploy to wait additional time if environment is red

Hi, everyone! We use atlassian/aws-elasticbeanstalk-deploy:0.3.1 to deploy our Node.js application.

During bitbucket's pipeline elasticbeanstalk's environment often (but not always) becomes "red" for about a minute, that makes pipeline to fail deployment step and cancel future steps of pipeline.

Is it possible to increase number of attempts for checking environment status or increase time interval between them using atlassian/aws-elasticbeanstalk-deploy?



2 answers

Hi, the problem I am facing is that if I set WAIT to true, there is a moment in time that the environment is RED, and the pipeline fails.

WAIT_INTERVAL reduces the risk since it will be checked less often, but still, there is a risk that it will check and the environment is RED, making it fail.


Do you have a possible workaround for this?

0 votes

@Peter Potapov , sure there is a WAIT and WAIT_INTERVAL pipe variables that you can set. WAIT is a boolean flag telling the pipe to wait until the deployment is successful. The WAIT_INTERVAL is a time to wait between the polling attempts. Note, that there is no wait timeout, so the pipe might wait indefinitely if your environment doesn't become healthy and it'll consume your build minutes. 

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,725 views 10 16
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