From 0c465a27a2866c89517659e7d15599e44648e712 Mon Sep 17 00:00:00 2001 From: Carlos Peliciari Date: Sun, 24 Nov 2024 10:23:30 -0300 Subject: [PATCH] fix(terraform): updated `data.cloudflare_zone` block to use `filter` attribute --- docs/data-sources/zone.md | 4 +++- examples/data-sources/cloudflare_zone/data-source.tf | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/data-sources/zone.md b/docs/data-sources/zone.md index 65d7e04e0e..eb2475e777 100644 --- a/docs/data-sources/zone.md +++ b/docs/data-sources/zone.md @@ -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" { diff --git a/examples/data-sources/cloudflare_zone/data-source.tf b/examples/data-sources/cloudflare_zone/data-source.tf index cf0b08c748..8ad3f99774 100644 --- a/examples/data-sources/cloudflare_zone/data-source.tf +++ b/examples/data-sources/cloudflare_zone/data-source.tf @@ -1,5 +1,7 @@ data "cloudflare_zone" "example" { - name = "example.com" + filter { + name = "example.com" + } } resource "cloudflare_record" "example" {