Drone plugin that deploys to ECS cluster using cross account IAM roles
362
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.
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
arn:aws:iam::1234567890:role/ci in AWS account 1234567890app in cluster apps to deploy the container kayako/app:v1Create 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.
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 ciAll the configuration options available in joshdvir/drone-ecs-deploy container are supported.
Content type
Image
Digest
Size
22.5 MB
Last updated
almost 9 years ago
docker pull kayako/drone-ecs