Skip to content

Commit

Permalink
- vpn-transit-gateway
Browse files Browse the repository at this point in the history
  - add ok_action, update template, add version to description
  • Loading branch information
badra001 committed May 31, 2023
1 parent 392e853 commit b344fc2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,7 @@
- new variables for creating cloudwatch alarms
- enable_cloudwatch_alarms
- cloudwatch_alarm_topic_arn

* 2.9.1 -- 2023-05-31
- vpn-transit-gateway
- add ok_action, update template, add version to description
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
_module_version = "2.9.0"
_module_version = "2.9.1"
_module_names = {
"_main_" = "aws-vpc-setup"

Expand Down
3 changes: 2 additions & 1 deletion vpn-transit-gateway/cloudwatch_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ resource "aws_cloudwatch_metric_alarm" "tgw_vpn" {
for_each = var.enable_cloudwatch_alarms && var.cloudwatch_alarm_topic_arn != null ? local.vpn_details : {}
actions_enabled = true
alarm_actions = [var.cloudwatch_alarm_topic_arn]
alarm_description = templatefile("${path.module}/templates/cloudwatch_alarm.tpl", tomap(each.value))
ok_actions = [var.cloudwatch_alarm_topic_arn]
alarm_description = templatefile("${path.module}/templates/vpn_tunnel_status.alarm.tpl", merge(tomap(each.value), { "module_name" = local.base_tags["boc:tf_module_name"], "module_version" = local._module_version }))
alarm_name = each.value.name
comparison_operator = "LessThanThreshold"
datapoints_to_alarm = 5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# VPN Tunnel Down
# VPN Tunnel Status Change

## ${account_alias} ${region} ${label} tunnel ${tunnel_number}

Expand All @@ -21,5 +21,7 @@
* tunnel_label = ${tunnel_label}
* interface_number = ${interface_number}
* loopback = ${loopback}
* asr-endpiont = ${customer_address}
* endpoint = ${customer_address}

_version = ${module_name} ${module_version}_

0 comments on commit b344fc2

Please sign in to comment.