Created
August 8, 2022 15:56
-
-
Save grokify/eab04291f1af0477095b9491f8619c25 to your computer and use it in GitHub Desktop.
SigSci Terraform CloudWAF Fork Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//terraform { | |
// required_providers { | |
// sigsci = { | |
// source = "signalsciences/sigsci" | |
// version = "0.4.2" | |
// } | |
// } | |
//} | |
// To build locally: | |
// make && cp terraform-provider-sigsci ~/.terraform.d/plugins/signalsciences/local/sigsci/0.4.2/darwin_amd64/terraform-provider-sigsci && rm .terraform.lock | |
.hcl && tf init | |
terraform { | |
required_providers { | |
sigsci = { | |
source = "signalsciences/local/sigsci" | |
version = "0.5.1" | |
} | |
} | |
} | |
provider "sigsci" { | |
// corp = "" // Required. may also provide via env variable SIGSCI_CORP | |
// email = "" // Required. may also provide via env variable SIGSCI_EMAIL | |
// auth_token = "" // may also provide via env variable SIGSCI_TOKEN | |
// password = "" // may also provide via env variable SIGSCI_PASSWORD | |
} | |
############# Corp Level Resources ############# | |
resource "sigsci_corp_cloudwaf_instance" "test_cloudwaf_instance"{ | |
name = "Cloud WAF created by SigSci Terraform provider test" | |
description = "Test CWAF Created by SigSci Terraform provider" | |
region = "us-east-1" | |
tls_min_version = "1.2" | |
use_uploaded_certificates = false | |
workspace_configs { | |
site_name = "test-sandbox" | |
instance_location = "advanced" | |
client_ip_header = "Fastly-Client-IP" | |
listener_protocols = ["https"] | |
routes { | |
domains = ["example.net"] | |
origin = "https://example.com" | |
connection_pooling = true | |
tls_host_override = true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment