Here is the details of the error:
Application deployment failed at 2019-12-24T13:02:30Z with exit status 1 and error: Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/03start-task.sh failed.
- . /opt/elasticbeanstalk/hooks/common.sh
- RETRY=0
- initctl start eb-ecs EB_EVENT_FILE=/tmp/eventsfile20191224-14898-8rj7zk
initctl: Job failed to start - ‘[’ -f /etc/elasticbeanstalk/.eb-ecs-start-no-retry ‘]’
- warn ‘Failed to start ECS task, retrying…’
- echo ‘Failed to start ECS task, retrying…’
Failed to start ECS task, retrying… - eventHelper.py --msg ‘Failed to start ECS task, retrying…’ --severity WARN
- RETRY=1
- sleep 3
- ‘[’ 1 -gt 1 ‘]’
- initctl start eb-ecs EB_EVENT_FILE=/tmp/eventsfile20191224-14898-8rj7zk
initctl: Job failed to start - ‘[’ -f /etc/elasticbeanstalk/.eb-ecs-start-no-retry ‘]’
- warn ‘Failed to start ECS task, retrying…’
- echo ‘Failed to start ECS task, retrying…’
Failed to start ECS task, retrying… - eventHelper.py --msg ‘Failed to start ECS task, retrying…’ --severity WARN
- RETRY=2
- sleep 3
- ‘[’ 2 -gt 1 ‘]’
- error_exit ‘Failed to start ECS task after retrying 2 times.’ 1
- error ‘Failed to start ECS task after retrying 2 times.’
- echo ‘Failed to start ECS task after retrying 2 times.’
Failed to start ECS task after retrying 2 times. - eventHelper.py --msg ‘Failed to start ECS task after retrying 2 times.’ --severity ERROR
- exit 1.
I used this for installation
https://raw.githubusercontent.com/mattermost/mattermost-docker/master/contrib/aws/Dockerrun.aws.json