Skip to content

Commit

Permalink
fix(terraform): updated data.cloudflare_zone block to use filter
Browse files Browse the repository at this point in the history
…attribute
  • Loading branch information
cpeliciari committed Nov 24, 2024
1 parent e2013d8 commit 0c465a2
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 0c465a2

Please sign in to comment.