ecs-cloudwatch-sns-alarms

cloudposse/ecs-cloudwatch-sns-alarms/aws

Terraform Module HCL AWS

Terraform module to create CloudWatch Alarms on ECS Service level metrics.

Install
module "ecs-cloudwatch-sns-alarms" {
source = "cloudposse/ecs-cloudwatch-sns-alarms/aws"
version = "0.13.2"
}
plain text: /constructs/tfmod-cloudposse-ecs-cloudwatch-sns-alarms-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

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"

Inputs (41)
NameTypeDescriptionDefault
cluster_namestringThe name of the ECS cluster to monitor required
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
enabledboolSet to false to prevent the module from creating any resourcesnull
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
cpu_utilization_low_thresholdnumberThe minimum percentage of CPU utilization average20
memory_utilization_low_thresholdnumberThe minimum percentage of Memory utilization average20
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
cpu_utilization_low_periodnumberDuration in seconds to evaluate for the alarm300
memory_utilization_low_ok_actionslist(string)A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization Low OK actio[]
service_namestringThe name of the ECS Service in the ECS cluster to monitor""
alarm_descriptionstringThe string to format and use as the alarm description."Average service %v utilization %v last
memory_utilization_high_alarm_actionslist(string)A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization High Alarm a[]
memory_utilization_low_alarm_actionslist(string)A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization Low Alarm ac[]
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
cpu_utilization_high_periodnumberDuration in seconds to evaluate for the alarm300
… and 1 more inputs
Outputs (8)
cpu_utilization_low_cloudwatch_metric_alarm_id — CPU utilization low CloudWatch metric alarm ID
cpu_utilization_low_cloudwatch_metric_alarm_arn — CPU utilization low CloudWatch metric alarm ARN
memory_utilization_high_cloudwatch_metric_alarm_id — Memory utilization high CloudWatch metric alarm ID
memory_utilization_high_cloudwatch_metric_alarm_arn — Memory utilization high CloudWatch metric alarm ARN
memory_utilization_low_cloudwatch_metric_alarm_id — Memory utilization low CloudWatch metric alarm ID
memory_utilization_low_cloudwatch_metric_alarm_arn — Memory utilization low CloudWatch metric alarm ARN
cpu_utilization_high_cloudwatch_metric_alarm_id — CPU utilization high CloudWatch metric alarm ID
cpu_utilization_high_cloudwatch_metric_alarm_arn — CPU utilization high CloudWatch metric alarm ARN
Resources (1)
aws_cloudwatch_metric_alarm
Details
FrameworkTerraform Module
LanguageHCL
Version0.13.2
Cloud AWS
★ Stars43
Forks30
Total downloads1.5M
Inputs41
Outputs8
Resources1
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated