rockset / terraform-provider-rockset

Apache License 2.0
2 stars 3 forks source link

Optionally update the alias when alias already exists #101

Closed tedyu closed 8 months ago

tedyu commented 8 months ago

Alias creation fails when the alias with same name exists:

│ Error: Alias with name "c" already exists in workspace "qa".

This PR checks the error message and calls UpdateAlias in this case. An option is added for backward compatibility:

   overwrite   = true

This is for https://github.com/rockset/terraform-provider-rockset/issues/100