diff --git a/docs/roles/deploy_container.md b/docs/roles/deploy_container.md index ed42996d..15955a56 100644 --- a/docs/roles/deploy_container.md +++ b/docs/roles/deploy_container.md @@ -88,8 +88,8 @@ deploy_container: - example-cluster-dev-b # See docs for values: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_TargetTrackingScalingPolicyConfiguration.html service_autoscale_metric_type: ECSServiceAverageCPUUtilization - service_autoscale_up_cooldown: 120 - service_autoscale_down_cooldown: 120 + service_autoscale_in_cooldown: 120 # scale down + service_autoscale_out_cooldown: 120 # scale up service_autoscale_target_value: 70 # the value to trigger a scaling event at service_public_container_ip: false # set to true to make containers appear on an EIP - more details: https://stackoverflow.com/a/66802973 service_enable_ssm: false # set to true to allow arbitrary command execution on containers via the AWS API diff --git a/roles/_init/README.md b/roles/_init/README.md index f31e8064..8d4fa92e 100644 --- a/roles/_init/README.md +++ b/roles/_init/README.md @@ -1,5 +1,5 @@ # Init -Mandatory role that must run before any other `ce-edploy` roles when executing a playbook. +Mandatory role that must run before any other `ce-deploy` roles when executing a playbook. These variables **must** be set in a common variables file if you do not wish to use defaults. diff --git a/roles/deploy_container/README.md b/roles/deploy_container/README.md index ed42996d..15955a56 100644 --- a/roles/deploy_container/README.md +++ b/roles/deploy_container/README.md @@ -88,8 +88,8 @@ deploy_container: - example-cluster-dev-b # See docs for values: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_TargetTrackingScalingPolicyConfiguration.html service_autoscale_metric_type: ECSServiceAverageCPUUtilization - service_autoscale_up_cooldown: 120 - service_autoscale_down_cooldown: 120 + service_autoscale_in_cooldown: 120 # scale down + service_autoscale_out_cooldown: 120 # scale up service_autoscale_target_value: 70 # the value to trigger a scaling event at service_public_container_ip: false # set to true to make containers appear on an EIP - more details: https://stackoverflow.com/a/66802973 service_enable_ssm: false # set to true to allow arbitrary command execution on containers via the AWS API diff --git a/roles/deploy_container/defaults/main.yml b/roles/deploy_container/defaults/main.yml index 98b23723..169fb359 100644 --- a/roles/deploy_container/defaults/main.yml +++ b/roles/deploy_container/defaults/main.yml @@ -45,8 +45,8 @@ deploy_container: - example-cluster-dev-b # See docs for values: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_TargetTrackingScalingPolicyConfiguration.html service_autoscale_metric_type: ECSServiceAverageCPUUtilization - service_autoscale_up_cooldown: 120 - service_autoscale_down_cooldown: 120 + service_autoscale_in_cooldown: 120 # scale down + service_autoscale_out_cooldown: 120 # scale up service_autoscale_target_value: 70 # the value to trigger a scaling event at service_public_container_ip: false # set to true to make containers appear on an EIP - more details: https://stackoverflow.com/a/66802973 service_enable_ssm: false # set to true to allow arbitrary command execution on containers via the AWS API diff --git a/roles/deploy_container/tasks/action-create.yml b/roles/deploy_container/tasks/action-create.yml index 5dadd039..58ebf27a 100644 --- a/roles/deploy_container/tasks/action-create.yml +++ b/roles/deploy_container/tasks/action-create.yml @@ -328,8 +328,8 @@ target_tracking_scaling_policy_configuration: PredefinedMetricSpecification: PredefinedMetricType: "{{ deploy_container.aws_ecs.service_autoscale_metric_type }}" - ScaleInCooldown: "{{ deploy_container.aws_ecs.service_autoscale_up_cooldown }}" - ScaleOutCooldown: "{{ deploy_container.aws_ecs.service_autoscale_down_cooldown }}" + ScaleInCooldown: "{{ deploy_container.aws_ecs.service_autoscale_in_cooldown }}" + ScaleOutCooldown: "{{ deploy_container.aws_ecs.service_autoscale_out_cooldown }}" DisableScaleIn: false TargetValue: "{{ deploy_container.aws_ecs.service_autoscale_target_value }}" delegate_to: localhost