diff --git a/doppler/resource_sync_types.go b/doppler/resource_sync_types.go index 182f1b2..bc783a6 100644 --- a/doppler/resource_sync_types.go +++ b/doppler/resource_sync_types.go @@ -88,12 +88,14 @@ func resourceSyncTerraformCloud() *schema.Resource { Type: schema.TypeString, Optional: true, ForceNew: true, + ExactlyOneOf: []string{"workspace_id", "variable_set_id"}, }, "variable_set_id": { Description: "The Terraform Cloud variable set ID to sync to", Type: schema.TypeString, Optional: true, ForceNew: true, + ExactlyOneOf: []string{"workspace_id", "variable_set_id"}, }, "variable_sync_type": { Description: "Either \"terraform\" to sync secrets as Terraform variables or \"env\" to sync as environment variables",