diff --git a/docs/resources/edge_deployment_service.md b/docs/resources/edge_deployment_service.md index 63ba3ef..aaf1777 100644 --- a/docs/resources/edge_deployment_service.md +++ b/docs/resources/edge_deployment_service.md @@ -14,8 +14,10 @@ description: |- ```terraform resource "sigsci_edge_deployment_service" "my-service" { - site_short_name = "manual_test" - fastly_sid = "test_sid" + site_short_name = "manual_test" + fastly_sid = "test_sid" + activate_version = true + percent_enabled = 100 } ``` @@ -27,6 +29,11 @@ resource "sigsci_edge_deployment_service" "my-service" { - `fastly_sid` (String) Fastly service ID - `site_short_name` (String) Site short name +### Optional + +- `activate_version` (Boolean) activate Fastly service version after clone. Possible values are true or false. Defaults to true. +- `percent_enabled` (Number) percentage of traffic to send to NGWAF@Edge. Possible values are integers values 0 to 100. Defaults to 0. + ### Read-Only - `id` (String) The ID of this resource. diff --git a/examples/resources/sigsci_edge_deployment_service/resource.tf b/examples/resources/sigsci_edge_deployment_service/resource.tf index a2e3fcf..f6ee3f8 100644 --- a/examples/resources/sigsci_edge_deployment_service/resource.tf +++ b/examples/resources/sigsci_edge_deployment_service/resource.tf @@ -1,4 +1,6 @@ resource "sigsci_edge_deployment_service" "my-service" { - site_short_name = "manual_test" - fastly_sid = "test_sid" + site_short_name = "manual_test" + fastly_sid = "test_sid" + activate_version = true + percent_enabled = 100 } diff --git a/main.tf b/main.tf index 86e1c77..32d8069 100644 --- a/main.tf +++ b/main.tf @@ -394,6 +394,8 @@ resource "sigsci_edge_deployment" "edge" { } resource "sigsci_edge_deployment_service" "edge" { - site_short_name = sigsci_site.my-site.short_name - fastly_sid = "[Fastly service id]" + site_short_name = sigsci_site.my-site.short_name + fastly_sid = "[Fastly service id]" + activate_version = true + percent_enabled = 100 } diff --git a/provider/resource_edge_deployment_service.go b/provider/resource_edge_deployment_service.go index 4b44950..b6295e9 100644 --- a/provider/resource_edge_deployment_service.go +++ b/provider/resource_edge_deployment_service.go @@ -27,14 +27,14 @@ func resourceEdgeDeploymentService() *schema.Resource { "activate_version": { Type: schema.TypeBool, - Description: "activate Fastly service version after clone. Possible values are true or false", + Description: "activate Fastly service version after clone. Possible values are true or false. Defaults to true.", Optional: true, Default: true, }, "percent_enabled": { Type: schema.TypeInt, - Description: "percentage of traffic to send to NGWAF@Edge. Possible values are integers values 0 to 100", + Description: "percentage of traffic to send to NGWAF@Edge. Possible values are integers values 0 to 100. Defaults to 0.", Optional: true, Default: 0, },