2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
I hadn't included the task-definition file in my github repo, which github actions searched when defining task definition.
답변함 4년 전
0
I faced the same issue, then I figured out that I need to download the task definition first then update it with the new container image. that solved the issue and I was able to deploy to ECS.
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition ${{ secrets.ECS_TASK_DEFINITION }} \
--query taskDefinition > task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: ${{ secrets.ECS_CONTAINER_NAME }}
image: ${{ steps.build-image.outputs.image }}
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 10달 전