Sign inSign up

kayako/drone-ecs

By kayako

Updated almost 9 years ago

Drone plugin that deploys to ECS cluster using cross account IAM roles

Image
0

362

kayako/drone-ecs repository overview

Drone ECS

A Drone plugin to deploy docker container to AWS ECS

This plugin is based on joshdvir/drone-ecs-deploy. It adds a simple IAM assume-role auth layer on top of the base plugin to utilize cross account IAM roles.

Usage

pipeline:
  deploy:
    image: kayako/drone-ecs
    cluster: apps
    service: app
    image_name: kayako/app:v1
    aws_region: us-east-1
    account: 1234567890

The configuration above will

  • assume IAM role arn:aws:iam::1234567890:role/ci in AWS account 1234567890
  • Update service app in cluster apps to deploy the container kayako/app:v1

IAM Configuration

Create an IAM role in target AWS account and allow the CI account to assume the role. Make sure that the IAM role has adequate permissions to update the cluster and service.

Plugin Configuration

  • account: The AWS account ID of the target environment. If account is not provided then the plugin will try to parse the docker container name. If the container is hosted in ECR repository then the account ID present in the container name is used.
  • use_ci_role: IAM role name to use. Defaults to ci

Notes

All the configuration options available in joshdvir/drone-ecs-deploy container are supported.

Tag summary

Content type

Image

Digest

Size

22.5 MB

Last updated

almost 9 years ago

docker pull kayako/drone-ecs