diff --git a/README.md b/README.md index 808bf28..44cb1c9 100644 --- a/README.md +++ b/README.md @@ -287,7 +287,6 @@ Available targets: | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.13.0 | -| [aws](#requirement\_aws) | >= 3.0 | | [datadog](#requirement\_datadog) | >= 3.0.0 | ## Providers diff --git a/docs/terraform.md b/docs/terraform.md index 1071784..e91d198 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -4,7 +4,6 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.13.0 | -| [aws](#requirement\_aws) | >= 3.0 | | [datadog](#requirement\_datadog) | >= 3.0.0 | ## Providers diff --git a/modules/monitors/main.tf b/modules/monitors/main.tf index f48dade..ad78b77 100644 --- a/modules/monitors/main.tf +++ b/modules/monitors/main.tf @@ -6,7 +6,7 @@ locals { # https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor resource "datadog_monitor" "default" { - for_each = local.enabled ? { for k, v in var.datadog_monitors : k => v if lookup(v, "enabled", true) } : {} + for_each = { for k, v in var.datadog_monitors : k => v if local.enabled && lookup(v, "enabled", true) } name = each.value.name type = each.value.type diff --git a/modules/monitors/versions.tf b/modules/monitors/versions.tf index 350baf0..473bedd 100644 --- a/modules/monitors/versions.tf +++ b/modules/monitors/versions.tf @@ -2,10 +2,6 @@ terraform { required_version = ">= 0.13.0" required_providers { - aws = { - source = "hashicorp/aws" - version = ">= 3.0" - } datadog = { source = "datadog/datadog" version = ">= 3.0.0" diff --git a/versions.tf b/versions.tf index 350baf0..473bedd 100644 --- a/versions.tf +++ b/versions.tf @@ -2,10 +2,6 @@ terraform { required_version = ">= 0.13.0" required_providers { - aws = { - source = "hashicorp/aws" - version = ">= 3.0" - } datadog = { source = "datadog/datadog" version = ">= 3.0.0"