mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Ecs service module health check settings (#47217)
* Added feature health_check_grace_period_seconds to ecs_service, this time with a botocore version check and some initial testing * Only set health_check_grace_period_seconds when loadbalancers are defined * Removed leftover commas and fix in test * Removed blank line * Minor improvements for ecs_service module * Removed default (30) for health_check_grace_period_seconds param * Changed botocore version allowed to 1.8.20 for health check param. * Fix empty healthcheck failure
This commit is contained in:
parent
2019f0e430
commit
c3b059d61c
3 changed files with 31 additions and 8 deletions
|
@ -27,6 +27,7 @@ ecs_service_placement_strategy:
|
|||
ecs_task_container_port: 8080
|
||||
ecs_target_group_name: "{{ resource_prefix[:28] }}-tg"
|
||||
ecs_load_balancer_name: "{{ resource_prefix[:29] }}-lb"
|
||||
ecs_service_health_check_grace_period: 60
|
||||
ecs_fargate_task_containers:
|
||||
- name: "{{ ecs_task_name }}"
|
||||
image: "{{ ecs_task_image_path }}"
|
||||
|
|
|
@ -232,6 +232,7 @@
|
|||
desired_count: 1
|
||||
deployment_configuration: "{{ ecs_service_deployment_configuration }}"
|
||||
placement_strategy: "{{ ecs_service_placement_strategy }}"
|
||||
health_check_grace_period_seconds: "{{ ecs_service_health_check_grace_period }}"
|
||||
load_balancers:
|
||||
- targetGroupArn: "{{ elb_target_group_instance.target_group_arn }}"
|
||||
containerName: "{{ ecs_task_name }}"
|
||||
|
@ -254,6 +255,7 @@
|
|||
desired_count: 1
|
||||
deployment_configuration: "{{ ecs_service_deployment_configuration }}"
|
||||
placement_strategy: "{{ ecs_service_placement_strategy }}"
|
||||
health_check_grace_period_seconds: "{{ ecs_service_health_check_grace_period }}"
|
||||
load_balancers:
|
||||
- targetGroupArn: "{{ elb_target_group_instance.target_group_arn }}"
|
||||
containerName: "{{ ecs_task_name }}"
|
||||
|
@ -279,6 +281,7 @@
|
|||
desired_count: 1
|
||||
deployment_configuration: "{{ ecs_service_deployment_configuration }}"
|
||||
placement_strategy: "{{ ecs_service_placement_strategy }}"
|
||||
health_check_grace_period_seconds: "{{ ecs_service_health_check_grace_period }}"
|
||||
load_balancers:
|
||||
- targetGroupArn: "{{ elb_target_group_instance.target_group_arn }}"
|
||||
containerName: "{{ ecs_task_name }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue