Waiting for AWS Elastic Beanstalk environment to become ready
April 23, 2018
Elastic Beanstalk on AWS seems to be one of those services that are pretty cool but it's hard to get to know them. One of the tasks you may encounter while working with it is that after making some change to its configuration you would like to wait for it to be finished before proceeding further. The change may be setting an environment variable but can also be deploying a new version of the application. I created a small bash script to help with that, can be useful when you try to run this process unattended, e.g. from CI.
#!/bin/bash
application_name=
environment_name=
timeout_seconds=
sleep_time_seconds=5
max_iterations_count=
iterations=0
status=
while ; do
status=
done
Happy coding !