diff --git a/README.md b/README.md index 7b61245..a3007fe 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,8 @@ provider "sigsci" { [Cloud WAF Instance](https://github.com/signalsciences/terraform-provider-sigsci/blob/main/docs/resources/corp_cloudwaf_instance.md) +[Cloud WAF Certificate](https://github.com/signalsciences/terraform-provider-sigsci/blob/main/docs/resources/corp_cloudwaf_certificate.md) + ## Site resources [Lists](https://github.com/signalsciences/terraform-provider-sigsci/blob/main/docs/resources/site_list.md) diff --git a/docs/resources/corp_cloudwaf_certificate.md b/docs/resources/corp_cloudwaf_certificate.md new file mode 100644 index 0000000..e339d80 --- /dev/null +++ b/docs/resources/corp_cloudwaf_certificate.md @@ -0,0 +1,45 @@ +### Example Usage + +```hcl-terraform +resource "sigsci_corp_cloudwaf_certificate" "test_corp_cloudwaf_certificate" { + name = "Test Cloud WAF Certificate" + certificate_body = < ../go-sigsci +//replace github.com/signalsciences/go-sigsci v0.1.6 => ../go-sigsci diff --git a/go.sum b/go.sum index 48cd743..d97aee0 100644 --- a/go.sum +++ b/go.sum @@ -168,8 +168,8 @@ github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DK github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/signalsciences/go-sigsci v0.1.5 h1:sKAFGo70Bv/F1QYL5W9mmo4BAWX0B9xmVk0rWQwmKRA= -github.com/signalsciences/go-sigsci v0.1.5/go.mod h1:9eUL/FIXlslxnqtsf0yk67CSBiYdL4ToYjYybzWQ77A= +github.com/signalsciences/go-sigsci v0.1.6 h1:O3v1kQOA00d+HO4pD8ykymouojBe02bYy0gj15ow8jA= +github.com/signalsciences/go-sigsci v0.1.6/go.mod h1:9eUL/FIXlslxnqtsf0yk67CSBiYdL4ToYjYybzWQ77A= github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= diff --git a/main.tf b/main.tf index 10db71a..97a307f 100644 --- a/main.tf +++ b/main.tf @@ -2,18 +2,18 @@ terraform { required_providers { sigsci = { source = "signalsciences/sigsci" - version = "0.4.2" + version = "1.1.0" } } } // 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 +// make && cp terraform-provider-sigsci ~/.terraform.d/plugins/signalsciences/local/sigsci/1.1.0/darwin_amd64/terraform-provider-sigsci && rm .terraform.lock.hcl && tf init //terraform { // required_providers { // sigsci = { // source = "signalsciences/local/sigsci" -// version = "0.4.2" +// version = "1.1.0" // } // } //} @@ -334,4 +334,63 @@ resource "sigsci_site_integration" "test_integration" { type = "slack" url = "https://wat.slack.com" events = ["listCreated"] -} \ No newline at end of file +} + +resource "sigsci_corp_cloudwaf_certificate" "test_cloudwaf_certificate"{ + name = "Certificate Name" + certificate_body = <