diff --git a/third_party/terraform/resources/resource_usage_export_bucket.go b/third_party/terraform/resources/resource_usage_export_bucket.go index 71f35d246064..ccd964041249 100644 --- a/third_party/terraform/resources/resource_usage_export_bucket.go +++ b/third_party/terraform/resources/resource_usage_export_bucket.go @@ -54,6 +54,7 @@ func resourceProjectUsageBucketRead(d *schema.ResourceData, meta interface{}) er if p.UsageExportLocation == nil { log.Printf("[WARN] Removing usage export location resource %s because it's not enabled server-side.", project) d.SetId("") + return nil } d.Set("project", project)