Skip to content

Commit

Permalink
Add validation to only allow one of workspace_id or variable_set_id
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrudz committed Jan 8, 2024
1 parent 787c43a commit 6924d65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doppler/resource_sync_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6924d65

Please sign in to comment.