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 ECScluster
- Name of the cluster. Optional. Default cluster is used if not specifiedfamily
- 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 latestcontainer_name
- Container name to useport_mappings
- Port mappings from host to container, format ishostPort containerPort
, protocol is automatically set to TransportProtocoldeployment_configuration
- Deployment configuration, format isminimumHealthyPercent maximumPercent
memory
, Amount of memory to assign to the container, defaults to 128memoryReservation
, Amount of memoryReservation to assign to the container, defaults to 128cpu
, Amount of CPU shares to assign to the container, defaults to 1024desired_count
, Desired number of instances to runenvironment_variables
- List of Environment Variables to be passed to the container, format isNAME=VALUE
docker_labels
- Optional docker labels`log_driver
- Log driver`log_driver_options
- Log driver options`network_mode
- Container network mode: bridge, host, none. Defaults to bridge`
deploy:
ecs:
image: clicktripz/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
container_name: my-container-name
environment_variables:
- DATABASE_URI=$$MY_DATABASE_URI
port_mappings:
- 80 9000
memory: 128
memoryReservation: 128
cpu: 1024
desired_count: 1
deployment_configuration: 50 200