Closed codesmithtech closed 1 year ago
@codesmithtech reviewing your terraform script (mongo_db.tf file) it appears you have provider_backup_enabled = null
. however per our documentation, the provider_backup_enabled
parameter has been deprecated and should therefore be removed from your terraform script. It appears you are already correctly calling cloud_backup
instead which is great. can you try removing provider_backup_enabled
and see if this helps resolving issue?
Thanks, but the issue persists even when provider_backup_enabled is not passed.
The source code of the provider includes that parameter in its API call to Atlas when the newer cloud_backup parameter is provided... I assume this is the root cause of the bug and included a link to this in the initial bug report.
I can only assume that the Atlas backend API has now fully dropped support for the provider_backup_enabled param, rather than just marking it as deprecated.
@codesmithtech @Zuhairahmed I am not able to replicate this error using v1.10.0 using parameter = null or skipping all together The SDK below and TF still push this value to API but I do not see this error.
This issue has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!
Hello @codesmithtech, We are not able to reproduce this issue with v1.10.2. Please, try to upgrade to v1.10.2 and feel free to reopen this issue if you are still facing the same error.
Thanks
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
Expected Behavior
Cluster should have provisioned in Mongo Atlas
Actual Behavior
Error reported by terraform during cluster creation.
Apply output was:
Debug Output
Crash Output
Additional Context
This looks like a problem whereby the API is not accepting a parameter that the terraform provider is sending. It seems the attribute the API is complaining about (
providerBackupEnabled
) is set when thecloud_backup
parameter is provided as a parameter to themongodbatlas_cluster
resource. Seen here: https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/mongodbatlas/resource_mongodbatlas_cluster.go#L492References