Skip to content

Latest commit

 

History

History
102 lines (78 loc) · 1.72 KB

cloudflare_byo_ip_prefix.md

File metadata and controls

102 lines (78 loc) · 1.72 KB

cloudflare_byo_ip_prefix

back

Index

Terraform

terraform {
  required_providers {
    cloudflare = ">= 2.19.2"
  }
}

top

Example Usage

module "cloudflare_byo_ip_prefix" {
  source = "./modules/cloudflare/r/cloudflare_byo_ip_prefix"

  # advertisement - (optional) is a type of string
  advertisement = null
  # description - (optional) is a type of string
  description = null
  # prefix_id - (required) is a type of string
  prefix_id = null
}

top

Variables

variable "advertisement" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "description" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "prefix_id" {
  description = "(required)"
  type        = string
}

top

Resource

resource "cloudflare_byo_ip_prefix" "this" {
  # advertisement - (optional) is a type of string
  advertisement = var.advertisement
  # description - (optional) is a type of string
  description = var.description
  # prefix_id - (required) is a type of string
  prefix_id = var.prefix_id
}

top

Outputs

output "advertisement" {
  description = "returns a string"
  value       = cloudflare_byo_ip_prefix.this.advertisement
}

output "description" {
  description = "returns a string"
  value       = cloudflare_byo_ip_prefix.this.description
}

output "id" {
  description = "returns a string"
  value       = cloudflare_byo_ip_prefix.this.id
}

output "this" {
  value = cloudflare_byo_ip_prefix.this
}

top