Skip to content

Latest commit

 

History

History
98 lines (75 loc) · 1.83 KB

fastly_waf_rules.md

File metadata and controls

98 lines (75 loc) · 1.83 KB

fastly_waf_rules

back

Index

Terraform

terraform {
  required_providers {
    fastly = ">= 0.28.1"
  }
}

top

Example Usage

module "fastly_waf_rules" {
  source = "./modules/fastly/d/fastly_waf_rules"

  # exclude_modsec_rule_ids - (optional) is a type of list of number
  exclude_modsec_rule_ids = []
  # publishers - (optional) is a type of list of string
  publishers = []
  # tags - (optional) is a type of list of string
  tags = []
}

top

Variables

variable "exclude_modsec_rule_ids" {
  description = "(optional) - A list of modsecurity rules IDs to be excluded from the data set."
  type        = list(number)
  default     = null
}

variable "publishers" {
  description = "(optional) - A list of publishers to be used as filters for the data set."
  type        = list(string)
  default     = null
}

variable "tags" {
  description = "(optional) - A list of tags to be used as filters for the data set."
  type        = list(string)
  default     = null
}

top

Datasource

data "fastly_waf_rules" "this" {
  # exclude_modsec_rule_ids - (optional) is a type of list of number
  exclude_modsec_rule_ids = var.exclude_modsec_rule_ids
  # publishers - (optional) is a type of list of string
  publishers = var.publishers
  # tags - (optional) is a type of list of string
  tags = var.tags
}

top

Outputs

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

output "rules" {
  description = "returns a list of object"
  value       = data.fastly_waf_rules.this.rules
}

output "this" {
  value = fastly_waf_rules.this
}

top