Skip to content

Example Configuration Files

project: simple-http

cluster: default

image:
  ecr: simple-http
  tag: "{{ .ImageTag }}"

task_defaults:
  cpu: 512
  memory: 2x

network:
  public_ip: false
  subnets:
    - subnet-111111111
    - subnet-222222222
  security_groups:
    - sg-111111111
    - sg-222222222

services:
  - name: web
    command: ["httpd", "-p", "8080"]
    desired: 3
    load_balancer:
      port: 8080
      target_group: simple-http-web
project: deployer-test

image: "webdestroya/http-placeholder:latest"

cluster: cloud87

role: cloud87-deployer-role
execution_role: cloud87-ecs-execution
cron_launcher_role: cloud87-ecs-cron-launcher

settings:
  ssm_import: /apps/secrets/deployer-test

network:
  subnets:
    - tag:cloud87/network=private
    - name: state
      values: [available]
    - name: tag:cloud87/subnet_class
      value: host
  security_groups:
    - name: group-name
      values: ["cloud87-ecs"]

logging:
  awslogs:
    retention: 180

tags:
  - name: cloud87/billable
    value: true

  - name: cloud87/application
    value: "{{ .Project }}"

  - name: cloud87/ecs/app
    value: "{{ .Project }}"

  - name: "cloud87/{{.Project}}/things"
    value: "{{ .Date }}"

console:
  enabled: true
  port: 8722

predeploy:
  - name: dbmigrate
    command: ["bundle", "exec", "rake", "db:migrate"]

environment:
  SOMEVARNAME: foobar

task_defaults:
  cpu: 512
  memory: 2048

services:
  - name: web
    desired: 3
    command: ["nothing"]
    load_balancer:
      target_group: c87-deployer-test-web
      port: 5000
    environment:
      PORT: 5000
    rollout:
      min: 100
      max: 200

  - name: worker
    desired: 0
    command: "bundle exec something --or other"

cronjobs:
  - name: reaper
    schedule: "cron(0 9 * * ? *)"
    command: ["bundle", "exec", "rake", "cron:whatever"]
    description: "Whatever: this does stuff"