From 641cc0a828a4d0c05b01e78ad5efbc11195a8059 Mon Sep 17 00:00:00 2001 From: Alex Lokshin Date: Thu, 10 Oct 2024 10:49:58 -0400 Subject: [PATCH] fix: Restrict happy datadog synthetics to us-east-1 and us-west-2 (#3602) Co-authored-by: github-actions[bot] --- terraform/modules/happy-datadog-synthetics/README.md | 1 - terraform/modules/happy-datadog-synthetics/main.tf | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/terraform/modules/happy-datadog-synthetics/README.md b/terraform/modules/happy-datadog-synthetics/README.md index f6c4d35f93..1a6cdb8b7f 100644 --- a/terraform/modules/happy-datadog-synthetics/README.md +++ b/terraform/modules/happy-datadog-synthetics/README.md @@ -21,7 +21,6 @@ No modules. | Name | Type | |------|------| | [datadog_synthetics_test.test_api](https://registry.terraform.io/providers/datadog/datadog/latest/docs/resources/synthetics_test) | resource | -| [datadog_synthetics_locations.locations](https://registry.terraform.io/providers/datadog/datadog/latest/docs/data-sources/synthetics_locations) | data source | ## Inputs diff --git a/terraform/modules/happy-datadog-synthetics/main.tf b/terraform/modules/happy-datadog-synthetics/main.tf index 680976d7f9..88866d123d 100644 --- a/terraform/modules/happy-datadog-synthetics/main.tf +++ b/terraform/modules/happy-datadog-synthetics/main.tf @@ -1,5 +1,3 @@ -data "datadog_synthetics_locations" "locations" {} - resource "datadog_synthetics_test" "test_api" { type = "api" subtype = "http" @@ -12,7 +10,7 @@ resource "datadog_synthetics_test" "test_api" { operator = "is" target = "200" } - locations = keys(data.datadog_synthetics_locations.locations.locations) + locations = ["aws:us-east-1", "aws:us-west-2"] options_list { tick_every = 900