diff --git a/docs/roles/deploy_container.md b/docs/roles/deploy_container.md index 06847722..ed42996d 100644 --- a/docs/roles/deploy_container.md +++ b/docs/roles/deploy_container.md @@ -124,6 +124,10 @@ deploy_container: protocol: http path: / response_codes: "200" + # optional additional healthcheck settings + #interval: 60 + #healthy_threshold_count: 3 + #unhealthy_threshold_count: 5 # Requires the deploy IAM user to have the managed AWSCertificateManagerFullAccess and AmazonRoute53FullAccess policies attached acm: # see https://github.com/codeenigma/ce-provision/tree/1.x/roles/aws/aws_acm create_cert: false diff --git a/roles/deploy_container/README.md b/roles/deploy_container/README.md index 06847722..ed42996d 100644 --- a/roles/deploy_container/README.md +++ b/roles/deploy_container/README.md @@ -124,6 +124,10 @@ deploy_container: protocol: http path: / response_codes: "200" + # optional additional healthcheck settings + #interval: 60 + #healthy_threshold_count: 3 + #unhealthy_threshold_count: 5 # Requires the deploy IAM user to have the managed AWSCertificateManagerFullAccess and AmazonRoute53FullAccess policies attached acm: # see https://github.com/codeenigma/ce-provision/tree/1.x/roles/aws/aws_acm create_cert: false diff --git a/roles/deploy_container/defaults/main.yml b/roles/deploy_container/defaults/main.yml index ff99d2b9..98b23723 100644 --- a/roles/deploy_container/defaults/main.yml +++ b/roles/deploy_container/defaults/main.yml @@ -81,6 +81,10 @@ deploy_container: protocol: http path: / response_codes: "200" + # optional additional healthcheck settings + #interval: 60 + #healthy_threshold_count: 3 + #unhealthy_threshold_count: 5 # Requires the deploy IAM user to have the managed AWSCertificateManagerFullAccess and AmazonRoute53FullAccess policies attached acm: # see https://github.com/codeenigma/ce-provision/tree/1.x/roles/aws/aws_acm create_cert: false diff --git a/roles/deploy_container/tasks/action-create.yml b/roles/deploy_container/tasks/action-create.yml index cc06163d..5dadd039 100644 --- a/roles/deploy_container/tasks/action-create.yml +++ b/roles/deploy_container/tasks/action-create.yml @@ -70,7 +70,7 @@ - name: Fetch the aws_acm files. ansible.builtin.get_url: - url: "https://raw.githubusercontent.com/codeenigma/ce-provision/1.x/roles/aws/aws_acm/{{ item }}/main.yml" + url: "https://raw.githubusercontent.com/codeenigma/ce-provision/2.x/roles/aws/aws_acm/{{ item }}/main.yml" dest: "{{ _ce_deploy_base_dir }}/roles/aws_acm/{{ item }}/main.yml" delegate_to: localhost with_items: @@ -79,7 +79,7 @@ - name: Fetch the aws_acm tasks. ansible.builtin.get_url: - url: https://raw.githubusercontent.com/codeenigma/ce-provision/1.x/roles/aws/aws_acm/tasks/main.yml + url: https://raw.githubusercontent.com/codeenigma/ce-provision/2.x/roles/aws/aws_acm/tasks/main.yml dest: "{{ _ce_deploy_base_dir }}/roles/aws_acm/tasks/main.yml" delegate_to: localhost @@ -161,6 +161,9 @@ vpc_id: "{{ _aws_ecs_cluster_vpc_id }}" health_check_protocol: "{{ deploy_container.aws_ecs.health_check.protocol }}" health_check_path: "{{ deploy_container.aws_ecs.health_check.path }}" + health_check_interval: "{{ deploy_container.aws_ecs.health_check.interval | default(omit) }}" + healthy_threshold_count: "{{ deploy_container.aws_ecs.health_check.healthy_threshold_count | default(omit) }}" + unhealthy_threshold_count: "{{ deploy_container.aws_ecs.health_check.unhealthy_threshold_count | default(omit) }}" successful_response_codes: "{{ deploy_container.aws_ecs.health_check.response_codes }}" target_type: ip targets: "{{ deploy_container.aws_ecs.targets }}"