Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hazelops/terraform-aws-nat-gateway-traffic-alert


https://github.com/hazelops/terraform-aws-nat-gateway-traffic-alert

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

# Terraform AWS Nat Gateway Traffic Alert

Terraform module that creates AWS nat gateway traffic alert

## Description

This module provides settings:

- Creates AWS nat gateway traffic alert

## Usage

### Miminal setup

```hcl

module "nat_gateway_traffic" {
source = "hazelops/nat-gateway-traffic-alert/aws"
version = "~> 1.0"
env = var.env
natgateway_ids = "[NAT Gateway IDs]>"
subscription_endpoint = "https://events.pagerduty.com/x-ere/"
}

```

## Requirements

| Name | Version |
|------|---------|
| terraform | >= 0.12.9 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| enabled | Gives ability to enable or disable a module | `bool` | `true` | no |
| endpoint\_auto\_confirms | Endpoint endpoint for SNS topic subscription, PagerDuty (https://events.pagerduty.com/integration//enqueue) | `bool` | `true` | no |
| env | n/a | `any` | n/a | yes |
| evaluation\_periods | The number of periods over which data is compared to the specified threshold | `string` | `"1"` | no |
| natgateway\_ids | ids of NAT Gateways | `any` | n/a | yes |
| period | The period in seconds over which the specified stat is applied. Period must be 10, 30 or a multiple of 60 | `string` | `"60"` | no |
| statistic | The statistic to apply to the alarm's associated metric. Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum | `string` | `"Maximum"` | no |
| subscription\_endpoint | Endpoint endpoint for SNS topic subscription, PagerDuty, Slack etc. | `any` | n/a | yes |
| subscription\_endpoint\_protocol | Endpoint protocol for SNS topic subscription | `string` | `"https"` | no |
| threshold | The value against which the specified statistic is compared. By default it is 1 million bytes.If you use default settings you will be alarmed when throughput will be more than 1 millon byte in 60 seconds | `string` | `"1000000"` | no |

## Outputs

| Name | Description |
|------|-------------|
| input\_traffic\_arn | n/a |
| input\_traffic\_id | n/a |
| output\_traffic\_arn | n/a |
| output\_traffic\_id | n/a |

### Terraform Module Registry

![Hazelops logo](https://avatars0.githubusercontent.com/u/63737915?s=25&v=4) [Terraform-nat-gateway-traffic-alert
](https://registry.terraform.io/modules/hazelops/nat-gateway-traffic-alert/aws/latest)