Действия Github для развертывания приложения django на elastic beanstalk
Я просто пытаюсь развернуть мое приложение django на elastic beanstalk с помощью действий github, но продолжаю получать эти ошибки:
Warning: Environment update finished, but health is Red and health status is Degraded. Giving it 30 seconds to recover...
Warning: Environment still has health: Red and health status Degraded. Waiting 19 more seconds before failing...
Warning: Environment still has health: Red and health status Degraded. Waiting 8 more seconds before failing...
Error: Deployment failed: Error: Environment still has health Red 30 seconds after update finished!
Этот код я использую ниже:
name: AWS Deploy
on:
push:
branches:
- test-main-branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'
- name: Get timestamp
uses: gerred/actions/current-time@master
id: current-time
- name: Run string replace
uses: frabert/replace-string-action@master
id: format-time
with:
pattern: '[:\.]+'
string: "${{ steps.current-time.outputs.time }}"
replace-with: "-"
flags: "g"
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v20
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: project-pit
environment_name: project-pit-cloud
version_label: 12345
region: ap-southeast-2
deployment_package: deploy.zip
- name: Deployed!
run: echo App deployed
Приложение отображается в моем ведре s3, но я все еще получаю сообщение Degraded health in on my elastic beanstalk.
Я также должен упомянуть, что мое ведро s3 имеет глубину более одного уровня, bucket/project-pit