Difference between revisions of "Terraform Cloudflare provider"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs
 
https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs
  
 +
Resources:
 
* <code>[[cloudflare_record]]: [[proxied]]</code>
 
* <code>[[cloudflare_record]]: [[proxied]]</code>
 
* <code>[[cloudflare_page_rule]]</code>
 
* <code>[[cloudflare_page_rule]]</code>
Line 6: Line 7:
 
* <code>[[cloudflare_load_balancer]]</code>
 
* <code>[[cloudflare_load_balancer]]</code>
  
== Examples ==
+
Data sources:
Official:
+
* <code>[[cloudflare_ip_ranges]]</code>
 +
* <code>[[cloudflare_zones]]</code>
 +
 
 +
== Official Example ==
  
 
  # Configure the Cloudflare provider using the required_providers stanza
 
  # Configure the Cloudflare provider using the required_providers stanza
Line 20: Line 24:
 
   }
 
   }
 
  }
 
  }
 
+
 
  provider "cloudflare" {
 
  provider "cloudflare" {
 
   api_token = [[var.]][[cloudflare_api_token]]
 
   api_token = [[var.]][[cloudflare_api_token]]
 
  }
 
  }
+
 
 
  # Create a record
 
  # Create a record
 
  resource "[[cloudflare_record]]" "www" {
 
  resource "[[cloudflare_record]]" "www" {
 
   # ...
 
   # ...
 
  }
 
  }
+
 
 
  # Create a page rule
 
  # Create a page rule
 
  resource "[[cloudflare_page_rule]]" "www" {
 
  resource "[[cloudflare_page_rule]]" "www" {

Latest revision as of 19:18, 16 July 2024

Advertising: