Giter VIP home page Giter VIP logo

aws-ecs-task-action's Introduction

Perx Health

AWS ECS Run Task

Note: This action is designed for use within Perx Health's infrastructure... it might not be very useful for other scenarios!

This repository contains a GitHub Action allowing you to run ECS tasks by providing a task definition.

Usage Example

As an example, add the following step to a GitHub Actions workflow.

- name: ๐Ÿš€ Migrate Database
  uses: perxhealth/aws-ecs-task-action@v1
  with:
    perx_env: qa
    perx_region: au
    perx_app_name: behavioural-science-hacks
    definition: /path/to/definition.tpl.json

Inputs

The Action currently expects five required inputs, and no further optional inputs.

NOTE: Input names are underscores, not hyphenated.

  1. perx_env

    Name of the Perx Environment which the deploy will target.

  2. perx_region

    Name of the Perx Region, representing locations on Earth and data sovereignty boundaries where the deploy will live.

  3. perx_app_name

    Name of the application/service itself. This is expected to match the application/service's cluster/runner naming convention.

  4. definition

    Location on disk from where the task definition file can be read. This is the task definition which is then registered with ECS.

  5. launch_type

    Define whether your task should launch in to EC2, FARGATE or EXTERNAL

Outputs

  1. task-definition-arn

    ARN of the resultant task definition on ECS

  2. task-arns

    Array of ARNs which identify the resultant tasks

  3. tasks-started-count

    Provides the total number of how many ECS Tasks were started, regardless of their status or success

  4. tasks-started-failed-count

    Provides the total number of ECS tasks which failed to start

AWS Credentials

The Action currently expects AWS credentials to exist in the environment, with sufficient permissions to perform the following actions.

ECS

  • DescribeTasks
  • RegisterTaskDefinition
  • RunTask

Development

The Action is written in Node with the main entrypoint being src/index.ts.

Clone the repository

$ git clone [email protected]:perxhealth/aws-ecs-task-action.git
$ cd aws-ecs-task-action

Testing

At the time of writing, there's no test suite to run.

aws-ecs-task-action's People

Contributors

lukerollans avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.