GitHub Action
Run one-off task on ECS
v1.0
Latest version
Runs a one-off task on AWS ECS Fargate.
Usage
- name: Run migration
uses: noelzubin/[email protected]
with:
cluster: staging
task-defintion: run_migration_task_def
subnets: sb-123123
security-groups: sg-1231231
- name: Run more Migrations
uses: noelzubin/[email protected]
with:
cluster: staging
task-defintion: server_backend_task_def
subnets: sb-123123
security-groups: sg-1231231
assign-public-ip: DISABLED
container-override: server
container-command: |
sh
-c
cd database && python migrate.py
See aciton.yml file for the full documentation for this action's inputs and outputs.
Note: the task-definition
input requires the name of the task-defintion. If you need to use task-definition input files, consider creating other actions to create the task defintion first.
This action relies on the default behavior of the AWS SDK for Javascript to determine AWS credentials and region.
Use the aws-actions/configure-aws-credentials
action to configure the GitHub Actions environment with environment variables containing AWS credentials and your desired region.
This code is made available under the MIT license.