Skip to content

Commit

Permalink
Merge pull request #4655 from cpeliciari/master
Browse files Browse the repository at this point in the history
fix(terraform): updated `data.cloudflare_zone` block to use `filter`
  • Loading branch information
jacobbednarz authored Nov 27, 2024
2 parents 568e808 + afb16d0 commit db3e1ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/data-sources/zone.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ resource or swap to `cloudflare_zones` to further filter the results.

```terraform
data "cloudflare_zone" "example" {
name = "example.com"
filter {
name = "example.com"
}
}
resource "cloudflare_record" "example" {
Expand Down
4 changes: 3 additions & 1 deletion examples/data-sources/cloudflare_zone/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
data "cloudflare_zone" "example" {
name = "example.com"
filter {
name = "example.com"
}
}

resource "cloudflare_record" "example" {
Expand Down

0 comments on commit db3e1ef

Please sign in to comment.