Closed mattt416 closed 4 years ago
Summary of the bug - ensure new parameter is passed when upgrading an existing cluster, specifically provider_backup_enabled (should be false by default)
For anyone stumbling across this bug, note that disabling backups will result in your existing snapshots getting terminated, so obviously only do that as a last resort.
@mattt416 - if you have a chance ensure https://github.com/terraform-providers/terraform-provider-mongodbatlas/pull/236 fixes your issue. Thanks!
Hey folks,
My config originally contained the following resource:
I then attempted to scale it to the M40_NVME tier:
Re-applying my config results in the API returning the following error (despite my cluster already having Cloud Provider Snapshots enabled (
provider_backup_enabled
set totrue
):The only way I could get the upgrade to go through via the Terraform provider was to first set
provider_backup_enabled
tofalse
and re-apply, and then flip everything to the M40_NVME tier withprovider_backup_enabled
set back totrue
.Testing this through the API directly, I do have explicitly set
providerBackupEnabled
in myPATCH
request:... and the issue is likely that Terraform isn't explicitly passing
providerBackupEnabled
when performing the tier update since providerBackupEnabled has already been set.Any thoughts on how we can get around this particular issue?
Thanks, Matt