-
Notifications
You must be signed in to change notification settings - Fork 262
Open
Description
I am using the run-task
command to run an ad-hoc task before the final deployment of ECS (separate step).
My configuration is this
- name: Do Job
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: my-service
cluster: my-cluster
wait-for-service-stability: true
run-task: true
run-task-security-groups: my-security-groups
run-task-subnets: my-subnets
wait-for-task-stopped: true
At this point the task responds that it's working and I can even see it successfully run the task within AWS console.
I see the task exit with CODE 0, which is what it should do, but then I get back an error from this step.
Network Configuration must be provided when networkMode 'awsvpc' is specified
I think there is a bug in the task, because when using the debug to see the actual logs coming back, the message actually shows a success, not an error, but the step still stops and fails with the above error.
##[debug]Run task response {"state":"SUCCESS","reason":{"$metadata":{"httpStatusCode":200, ... }}}
Full error from debug logs
##[debug]InvalidParameterException: Network Configuration must be provided when networkMode 'awsvpc' is specified.
##[debug] at de_InvalidParameterExceptionRes (/home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:19432:21)
##[debug] at de_CommandError (/home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:19263:19)
##[debug] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
##[debug] at async /home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:35024:20
##[debug] at async /home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:30288:18
##[debug] at async /home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:81762:38
##[debug] at async /home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:26225:22
##[debug] at async updateEcsService (/home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:235:3)
##[debug] at async run (/home/runner/work/_actions/aws-actions/amazon-ecs-deploy-task-definition/v2/dist/index.js:567:9)
##[debug]Node Action run completed with exit code 1
Metadata
Metadata
Assignees
Labels
No labels