Difference between revisions of "Cloudflare zone"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/data-sources/zone
  
 
  data "cloudflare_zone" "example" {
 
  data "cloudflare_zone" "example" {
Line 14: Line 15:
  
  
 +
 +
[[Error: error listing zones: Invalid access token (9109)]]
  
 
{{cloudflare_record}}
 
{{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)

cloudflare_record, cloudflare_zone

Advertising: