Skip to content

KitchenStories/aws-ecs-run-task

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS ECS Run Task

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.

Credentials and Region

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.

License Summary

This code is made available under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%