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...") |
|||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
+ | |||
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 12: | ||
proxied = true | proxied = true | ||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | {{cloudflare_record}} |
Revision as of 19:38, 16 July 2024
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 }
Advertising: