ecs-cloudwatch-sns-alarms
cloudposse/ecs-cloudwatch-sns-alarms/aws
Terraform module to create CloudWatch Alarms on ECS Service level metrics.
Terraform module for creating alarms for tracking important changes and occurrences from ECS Services. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest, see test. ``hcl module "ecs_service_alarms" { source = "cloudposse/ecs-cloudwatch-sns-alarms/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" namespace = "eg" stage = "staging" name = "app" cluster_name = "example"
| Name | Type | Description | Default |
|---|---|---|---|
| cluster_name | string | The name of the ECS cluster to monitor | required |
| context | any | Single object for setting entire context at once. See description of individual | {
"additional_tag_map": {},
"attribu |
| enabled | bool | Set to false to prevent the module from creating any resources | null |
| tenant | string | ID element _(Rarely used, not included by default)_. A customer identifier, indi | null |
| name | string | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi | null |
| delimiter | string | Delimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` | null |
| attributes | list(string) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, | [] |
| cpu_utilization_low_threshold | number | The minimum percentage of CPU utilization average | 20 |
| memory_utilization_low_threshold | number | The minimum percentage of Memory utilization average | 20 |
| additional_tag_map | map(string) | Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add | {} |
| cpu_utilization_low_period | number | Duration in seconds to evaluate for the alarm | 300 |
| memory_utilization_low_ok_actions | list(string) | A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization Low OK actio | [] |
| service_name | string | The name of the ECS Service in the ECS cluster to monitor | "" |
| alarm_description | string | The string to format and use as the alarm description. | "Average service %v utilization %v last |
| memory_utilization_high_alarm_actions | list(string) | A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization High Alarm a | [] |
| memory_utilization_low_alarm_actions | list(string) | A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization Low Alarm ac | [] |
| namespace | string | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' | null |
| labels_as_tags | set(string) | Set of labels (ID elements) to include as tags in the `tags` output. Default is | [
"default"
] |
| regex_replace_chars | string | Terraform regular expression (regex) string. Characters matching the regex will | null |
| id_length_limit | number | Limit `id` to this many characters (minimum 6). Set to `0` for unlimited length. | null |
| cpu_utilization_high_period | number | Duration in seconds to evaluate for the alarm | 300 |
| … and 1 more inputs | |||
cpu_utilization_low_cloudwatch_metric_alarm_id — CPU utilization low CloudWatch metric alarm IDcpu_utilization_low_cloudwatch_metric_alarm_arn — CPU utilization low CloudWatch metric alarm ARNmemory_utilization_high_cloudwatch_metric_alarm_id — Memory utilization high CloudWatch metric alarm IDmemory_utilization_high_cloudwatch_metric_alarm_arn — Memory utilization high CloudWatch metric alarm ARNmemory_utilization_low_cloudwatch_metric_alarm_id — Memory utilization low CloudWatch metric alarm IDmemory_utilization_low_cloudwatch_metric_alarm_arn — Memory utilization low CloudWatch metric alarm ARNcpu_utilization_high_cloudwatch_metric_alarm_id — CPU utilization high CloudWatch metric alarm IDcpu_utilization_high_cloudwatch_metric_alarm_arn — CPU utilization high CloudWatch metric alarm ARNAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,