Sha256: ea0c05aa64114b929bce0ff0b686e6695e8722a474c9cf58e790c650c5dda497

Contents?: true

Size: 1.42 KB

Versions: 6

Compression:

Stored size: 1.42 KB

Contents

scheduler:
  type: ecs
  region: ap-northeast-1
  cluster: eagletmt
  desired_count: 2
  role: ecsServiceRole
  elb:
    listeners:
      - load_balancer_port: 80
        protocol: HTTP
    subnets:
      - subnet-XXXXXXXX
      - subnet-YYYYYYYY
    security_groups:
      - sg-ZZZZZZZZ
  autoscaling:
    role_arn: arn:aws:iam::012345678901:role/ecsAutoscaleRole
    min_capacity: 1
    max_capacity: 4
    policies:
      # Add one task when ecs-scaling-out-hello-autoscaling-service is in alarm state
      - alarms: [ecs-scaling-out-hello-autoscaling-service]
        cooldown: 300
        adjustment_type: ChangeInCapacity
        scaling_adjustment: 1
        metric_interval_lower_bound: 0
        metric_aggregation_type: Average
      # Remove one task when ecs-scaling-in-hello-autoscaling-service is in alarm state
      - alarms: [ecs-scaling-in-hello-autoscaling-service]
        cooldown: 300
        adjustment_type: ChangeInCapacity
        scaling_adjustment: 1
        metric_interval_upper_bound: 0
        metric_aggregation_type: Average
app:
  image: ryotarai/hello-sinatra
  memory: 128
  cpu: 256
  env:
    $providers:
      - type: file
        path: hello.env
    PORT: 3000
    MESSAGE: '#{username}-san'
additional_containers:
  front:
    image_tag: hako-nginx
    memory: 32
    cpu: 32
scripts:
  - <<: !include front.yml
    backend_port: 3000
    locations:
      /:
        allow_only_from:
          - 10.0.0.0/24

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hako-0.20.2 examples/hello-autoscaling.yml
hako-0.20.1 examples/hello-autoscaling.yml
hako-0.20.0 examples/hello-autoscaling.yml
hako-0.19.0 examples/hello-autoscaling.yml
hako-0.18.1 examples/hello-autoscaling.yml
hako-0.18.0 examples/hello-autoscaling.yml