Difference between revisions of "Cloudflare zone"
Jump to navigation
Jump to search
(Created page with " data "cloudflare_zone" "example" { name = "example.com" } resource "cloudflare_record" "example" { zone_id = data.cloudflare_zone.example.id name = "www" v...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
+ | https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/data-sources/zone | ||
+ | |||
data "cloudflare_zone" "example" { | data "cloudflare_zone" "example" { | ||
name = "example.com" | name = "example.com" | ||
} | } | ||
− | resource "cloudflare_record" "example" { | + | resource "[[cloudflare_record]]" "example" { |
zone_id = data.cloudflare_zone.example.id | zone_id = data.cloudflare_zone.example.id | ||
name = "www" | name = "www" | ||
Line 10: | Line 13: | ||
proxied = true | proxied = true | ||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | [[Error: error listing zones: Invalid access token (9109)]] | ||
+ | |||
+ | {{cloudflare_record}} |
Latest revision as of 19:42, 16 July 2024
https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/data-sources/zone
data "cloudflare_zone" "example" { name = "example.com" } resource "cloudflare_record" "example" { zone_id = data.cloudflare_zone.example.id name = "www" value = "203.0.113.1" type = "A" proxied = true }
Error: error listing zones: Invalid access token (9109)
Advertising: