diff --git a/fastly/resource_fastly_alert.go b/fastly/resource_fastly_alert.go index 8184041e4..479d15875 100644 --- a/fastly/resource_fastly_alert.go +++ b/fastly/resource_fastly_alert.go @@ -102,7 +102,7 @@ func resourceFastlyAlert() *schema.Resource { "service_id": { Type: schema.TypeString, - Required: true, + Optional: true, ForceNew: true, Description: "The service which the alert monitors.", }, diff --git a/fastly/resource_fastly_alert_test.go b/fastly/resource_fastly_alert_test.go index 42a8ef1bd..004f34166 100644 --- a/fastly/resource_fastly_alert_test.go +++ b/fastly/resource_fastly_alert_test.go @@ -428,7 +428,6 @@ func testAccAlertPercentAggregateStatsConfig(alert gofastly.AlertDefinition) str resource "fastly_alert" "tf_percent" { name = "%s" description = "%s" - service_id = "" source = "%s" metric = "%s"