Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Peter Potapov August 12, 2019

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

0 votes
Fernando Martin November 13, 2020

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
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 19, 2019

@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
TAGS
AUG Leaders

Atlassian Community Events