aptible / terraform-provider-aptible

The official Terraform provider for Aptible Deploy
https://registry.terraform.io/providers/aptible/aptible/latest
10 stars 13 forks source link

fix: updated endpoint resource to use ForceNew prompting deletion/recreation when changing internal field #72

Closed madhuravius closed 2 years ago

madhuravius commented 2 years ago

Our API does not support switching endpoints between internal and external. This is a good decision that supports avoiding accidental internal => external conversions.

We should instead set ForceNew: true on that field.


Created an endpoint that was internal. (internal = true)

image

Then updated endpoint to external (internal = false), which forced a prompt and deletes/recreates:

image image
shortcut-integration[bot] commented 2 years ago

This pull request has been linked to Shortcut Story #4882: Terraform incorrectly makes customers think the can switch endpoints between internal and external.