summaryrefslogtreecommitdiff
path: root/test/integration/targets/ecs_cluster/playbooks/roles/ecs_cluster/defaults/main.yml
blob: 288f531f9580eab50d5bb963145baf8b1542fb25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ecs_cluster_name: "{{ resource_prefix }}"
user_data: |
  #!/bin/bash
  echo ECS_CLUSTER={{ ecs_cluster_name }} >> /etc/ecs/ecs.config

ecs_service_name: "{{ resource_prefix }}-service"
ecs_task_image_path: nginx
ecs_task_name: "{{ resource_prefix }}-task"
ecs_task_memory: 128
ecs_task_containers:
- name: "{{ ecs_task_name }}"
  image: "{{ ecs_task_image_path }}"
  essential: true
  memory: "{{ ecs_task_memory }}"
  portMappings:
  - containerPort: "{{ ecs_task_container_port }}"
    hostPort: "{{ ecs_task_host_port|default(0) }}"
  mountPoints: "{{ ecs_task_mount_points|default([]) }}"
ecs_service_deployment_configuration:
  minimum_healthy_percent: 0
  maximum_percent: 100
ecs_service_placement_strategy:
  - type: binpack
    field: memory
  - type: spread
    field: attribute:ecs.availability-zone
ecs_task_container_port: 8080
ecs_target_group_name: "{{ resource_prefix[:28] }}-tg"
ecs_load_balancer_name: "{{ resource_prefix[:29] }}-lb"
ecs_fargate_task_containers:
- name: "{{ ecs_task_name }}"
  image: "{{ ecs_task_image_path }}"
  essential: true
  portMappings:
  - containerPort: "{{ ecs_task_container_port }}"
    hostPort: "{{ ecs_task_host_port|default(0) }}"
  #mountPoints: "{{ ecs_task_mount_points|default([]) }}"