Skip to content

Commit

Permalink
fix: Restrict happy datadog synthetics to us-east-1 and us-west-2 (#3602
Browse files Browse the repository at this point in the history
)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
alexlokshin-czi and github-actions[bot] authored Oct 10, 2024
1 parent c80825d commit 641cc0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion terraform/modules/happy-datadog-synthetics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions terraform/modules/happy-datadog-synthetics/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
data "datadog_synthetics_locations" "locations" {}

resource "datadog_synthetics_test" "test_api" {
type = "api"
subtype = "http"
Expand All @@ -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

Expand Down

0 comments on commit 641cc0a

Please sign in to comment.