Drone plugins > AWS ECS

The ECS plugin can be used to deploy a Docker image to an ECS environment.

Example

kind: pipeline
name: default

steps:
- name: ecs
  image: pelotech/drone-ecs
  settings:
    access_key: superaccesskey
    secret_key: supersecretkey
    service: service1
    region: us-west-2
    family: my-ecs-task
    image_name: namespace/repo
    image_tag: latest
    environment_variables:
      - DATABASE_URI=database uri
    port_mappings:
      - 80 9000
    memory: 128

Properties

  • access_key

    stringoptional

    AWS access key.

    Secret recommended

    Default: none

  • secret_key

    stringoptional

    AWS secret key.

    Secret recommended

    Default: none

  • service

    stringoptional

    ecs service on that environment to upgrade.

    Default: none

  • region

    stringoptional

    AWS region.

    Default: none

  • family

    stringoptional

    ECS task.

    Default: none

  • image_name

    stringoptional

    docker image to use.

    Default: none

  • image_tag

    stringoptional

    docker image tag to use.

    Default: none

  • environment_variables

    arrayoptional

    list of environment variables to pass to ecs.

    Default: none

  • port_mappings

    arrayoptional

    list of port mappings to pass to ecs.

    Default: none

  • memory

    numberoptional

    memory to assign to the service.

    Default: none