Use this plugin for deploying a docker container application to AWS EC2 Container Service (ECS).
access_key
- AWS access key ID, MUST be an IAM user with the AmazonEC2ContainerServiceFullAccess policy attachedsecret_key
- AWS secret access keyregion
- AWS availability zoneservice
- Name of the service in the cluster, MUST be created already in ECSfamily
- Family name of the task definition to create or update with a new revisionimage_name
, Container image to use, do not include the tag hereimage_tag
- Tag of the image to use, defaults to latestport_mappings
- Port mappings from host to container, format ishostPort containerPort
, protocol is automatically set to TransportProtocolmemory
, Amount of memory to assign to the container, defaults to 128environment_variables
- List of Environment Variables to be passed to the container, format isNAME=VALUE
deploy:
ecs:
image: plugins/drone-ecs
region: eu-west-1
access_key: $$ACCESS_KEY_ID
secret_key: $$SECRET_ACCESS_KEY
family: my-ecs-task
image_name: namespace/repo
image_tag: latest
service: my-ecs-service
environment_variables:
- DATABASE_URI=$$MY_DATABASE_URI
port_mappings:
- 80 9000
memory: 128