amazon-ecs-deploy-task-definition
amazon-ecs-deploy-task-definition copied to clipboard
Create a new task revision with deploying the service
Hi Team,
I just want to create a new task revision without deploying any service.
It is an ECS task without service which will be running as a separate task.
- name: Create housekeeping task
id: task-def-housekeeping
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: .aws/task-def-housekeeping.json
container-name: recluster-user-housekeeping
image: ${{ steps.build-image.outputs.image }}
The above code does not create new task revision.
I think AWS hasn't created that action yet. Maybe you will find https://github.com/marketplace/actions/ecs-deploy-task-definition-to-scheduled-task-action-for-github-actions useful for now.
The service input is optional (also cluster) I got this working by not specifying them hope this helps.