Skip to content

Amazon Elastic Container service plugin for Digdag workflow manager

License

Notifications You must be signed in to change notification settings

platform-lunar/digdag-plugin-ecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digdag-plugin-ecs

Description

digdag-plugin-ecs is a plugin for submitting tasks to Amazon Elastic Container Service.

Requirements

Usage

_export:
  plugin:
    repositories:
      - https://jitpack.io
    dependencies:
      - com.github.platform-lunar:digdag-plugin-ecs:0.1.0

+ecs_register_action:
  ecs_register>: Register dummy application
  family: digdag-ecs-plugin-test
  container_definitions:
    - name: digdag-ecs-plugin-app-test
      image: alpine:3.6
      cpu: 256
      memory: 256
      log_configuration:
        log_driver: syslog

+import:
  _parallel: true

  +ecs_run_action1:
    ecs_run>: Run dummy ECS application1
    cluster: ${cluster}
    count: 1
    overrides:
      container_overrides:
        - name: digdag-ecs-plugin-app-test
          command:
            - /bin/echo
            - "hello"
    task_definition: ${ecs.last_task_family}

  +ecs_run_action2:
    ecs_run>: Run dummy ECS application2
    cluster: ${cluster}
    count: 1
    overrides:
      container_overrides:
        - name: digdag-ecs-plugin-app-test
          command:
            - /bin/echo
            - "world"
    task_definition: ${ecs.last_task_family}

Submission example:

digdag run --project sample plugin.dig -p cluster=<ecs_cluster_name> -p repos=`pwd`/build/repo --rerun

Be sure to set secrets like: aws.ecs.access_key_id, aws.ecs.secret_access_key and aws.ecs.region (or aws.region).

License

Apache License 2.0

About

Amazon Elastic Container service plugin for Digdag workflow manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages