Skip to content

Commit cccc1a5

Browse files
Fix: Inconsistent conditional result types (cloudposse#68)
* use for filter directly rather than ternary * remove unused provider and update minimum terraform version * Auto Format * revert version bump * Auto Format Co-authored-by: cloudpossebot <[email protected]>
1 parent da32634 commit cccc1a5

File tree

5 files changed

+1
-11
lines changed

5 files changed

+1
-11
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ Available targets:
287287
| Name | Version |
288288
|------|---------|
289289
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
290-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
291290
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 3.0.0 |
292291

293292
## Providers

docs/terraform.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
| Name | Version |
55
|------|---------|
66
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
7-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
87
| <a name="requirement_datadog"></a> [datadog](#requirement\_datadog) | >= 3.0.0 |
98

109
## Providers

modules/monitors/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ locals {
66

77
# https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor
88
resource "datadog_monitor" "default" {
9-
for_each = local.enabled ? { for k, v in var.datadog_monitors : k => v if lookup(v, "enabled", true) } : {}
9+
for_each = { for k, v in var.datadog_monitors : k => v if local.enabled && lookup(v, "enabled", true) }
1010

1111
name = each.value.name
1212
type = each.value.type

modules/monitors/versions.tf

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ terraform {
22
required_version = ">= 0.13.0"
33

44
required_providers {
5-
aws = {
6-
source = "hashicorp/aws"
7-
version = ">= 3.0"
8-
}
95
datadog = {
106
source = "datadog/datadog"
117
version = ">= 3.0.0"

versions.tf

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ terraform {
22
required_version = ">= 0.13.0"
33

44
required_providers {
5-
aws = {
6-
source = "hashicorp/aws"
7-
version = ">= 3.0"
8-
}
95
datadog = {
106
source = "datadog/datadog"
117
version = ">= 3.0.0"

0 commit comments

Comments
 (0)