Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/ecs_cluster/defaults/main.yml

raw
1 ecs_cluster_name: "{{ resource_prefix }}"
2 user_data: |
3 #!/bin/bash
4 echo ECS_CLUSTER={{ ecs_cluster_name }} >> /etc/ecs/ecs.config
5
6 ecs_service_name: "{{ resource_prefix }}-service"
7 ecs_service_role_name: "ansible-test-ecsServiceRole-{{ tiny_prefix }}"
8 ecs_task_role_name: "ansible-test-ecsServiceRole-task-{{ tiny_prefix }}"
9 ecs_task_image_path: nginx
10 ecs_task_name: "{{ resource_prefix }}-task"
11 ecs_task_memory: 128
12 target_swap_mb: 0
13 target_swappiness: 80
14 ecs_task_containers:
15 - name: "{{ ecs_task_name }}"
16 image: "{{ ecs_task_image_path }}"
17 essential: true
18 memory: "{{ ecs_task_memory }}"
19 portMappings:
20 - containerPort: "{{ ecs_task_container_port }}"
21 hostPort: "{{ ecs_task_host_port|default(0) }}"
22 linuxParameters:
23 maxSwap: "{{ target_swap_mb }}"
24 swappiness: "{{ target_swappiness }}"
25 mountPoints: "{{ ecs_task_mount_points|default([]) }}"
26 ecs_service_deployment_configuration:
27 minimum_healthy_percent: 0
28 maximum_percent: 100
29 deployment_circuit_breaker:
30 enable: true
31 rollback: true
32 ecs_service_placement_strategy:
33 - type: binpack
34 field: memory
35 - type: spread
36 field: attribute:ecs.availability-zone
37 ecs_task_container_port: 8080
38 ecs_target_group_name: "{{ resource_prefix[:28] }}-tg"
39 ecs_load_balancer_name: "{{ resource_prefix[:29] }}-lb"
40 ecs_service_health_check_grace_period: 60
41 ecs_fargate_task_containers:
42 - name: "{{ ecs_task_name }}"
43 image: "{{ ecs_task_image_path }}"
44 essential: true
45 portMappings:
46 - containerPort: "{{ ecs_task_container_port }}"
47 hostPort: "{{ ecs_task_host_port|default(0) }}"
48 #mountPoints: "{{ ecs_task_mount_points|default([]) }}"
49 ecs_taskdefinition_placement_constraints:
50 - type: memberOf
51 expression: 'attribute:ecs.instance-type == t3.micro'