Skip to content

honestbank/terraform-aws-cloudwatch

Repository files navigation

Terraform AWS CloudWatch-related modules

This repository contains various Terraform modules related to AWS CloudWatch. In particular:

  • ec2-static-alarms: Module to create static alarms related to EC2 instances. The module also configures the webhooks to be notified upon triggering of the alarms.

Requirements

Name Version
pagerduty >=2.4.1

Providers

Name Version
aws 4.22.0
pagerduty 2.5.2
random 3.3.2
time 0.7.2

Modules

Name Source Version
alarms ./ec2-static-alarms n/a

Resources

Name Type
aws_instance.test_ec2_1 resource
aws_subnet.test_subnet resource
aws_vpc.test_vpc resource
pagerduty_escalation_policy.test_escalation_policy resource
pagerduty_service.test_service resource
pagerduty_service_integration.cloudwatch resource
pagerduty_user.test_user resource
random_string.test_instance resource
time_sleep.wait_service_integration resource
aws_ami.ubuntu data source
pagerduty_vendor.cloudwatch data source

Inputs

Name Description Type Default Required
aws_region AWS Region where to run the tests string n/a yes
pagerduty_token Token to initialize PagerDuty provider string n/a yes

Outputs

Name Description
alarm_arns Map with keys being alarm names and values the AWS ARNs.
sns_subscription_arns ARN of the SNS subscriptions created for the alarms