Hi all,
Am trying to get my head around deploying apps into AWS Beanstalk using BitBucket Piplines.
End goal will be deploying some Django apps.
Anyways, I have been giving it a go and following the tutorial linked below:
https://support.atlassian.com/bitbucket-cloud/docs/deploy-to-aws-with-elastic-beanstalk/
I am having issues where its failing after deployment saying:
✖ Deployment failed. Environment "Cvsstaging-env" is Red.
And in AWS:
| 2021-09-11 15:29:53 UTC+0930 | WARN | Environment health has transitioned from Degraded to Severe. 100.0 % of the requests are failing with HTTP 5xx. ELB processes are not healthy on all instances. ELB health is failing or not available for all instances. Impaired services on all instances. One or more TargetGroups associated with the environment are in a reduced health state: - awseb-AWSEB-1KNZ27HWP6PPX - Warning |
| 2021-09-11 15:28:53 UTC+0930 | WARN | Environment health has transitioned from Severe to Degraded. 100.0 % of the requests are failing with HTTP 5xx. Application update completed 66 seconds ago and took 14 seconds. Impaired services on all instances. One or more TargetGroups associated with the environment are in a reduced health state: - awseb-AWSEB-1KNZ27HWP6PPX - Warning |
I assumed this was likely due to an issue with my app, so insead of trying to deploy my own app, i decided to just try deploy the app linked in the tutorial itself:
https://bitbucket.org/bitbucketpipelines/example-aws-elasticbeanstalk-deploy/src/master/
But even this repository with the only changes being, changing it to Python 3.8 in the docker file as my Beanstalk is running Python 3.8, and obviously AWS details and credentials, but even this is having the same error.
I feel like im missing something super basic?