Closed joshworktango closed 1 year ago
Hello @joshworktango
I was able to reproduce the issue in my local environment using the provided configuration file. The issue lies in the fact that the same cluster name is being used for both the cluster_name
and target_cluster_name
fields in the "mongodbatlas_cloud_backup_snapshot_restore_job"
resource.
To resolve this, you need to update the cluster_name
field with the name of the cluster where the snapshot was taken. After making this change, the Terraform apply command should successfully apply your modifications. Here's the updated configuration:
resource "mongodbatlas_cloud_backup_snapshot_restore_job" "automated_backup_test" {
project_id = local.project_id
cluster_name = <UPDATE THIS WITH THE NAME OF THE CLUSTER USED TO TAKE THE SNAPSHOT>
snapshot_id = data.mongodbatlas_cloud_backup_snapshots.latest_snapshot.results[0].id
delivery_type_config {
automated = true
target_cluster_name = mongodbatlas_cluster.automated_backup_test.name
target_project_id = local.project_id
}
}
Please let me know if you encounter any further issues. Thanks
@joshworktango just checking if this helps? if so feel free to close out this issue, thank you
@joshworktango just checking if this helps? if so feel free to close out this issue, thank you
Hi sorry just tested this, this morning. Was off work for a few days. That seems to have resolved the issue though interesting it only happens inside the docker container not on my Mac
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform v1.4.6
Terraform Configuration File
Steps to Reproduce
Expected Behavior
Expected to fully apply which creates a cluster and restores a backup from a snapshot. Works when run manually on my local laptop
Actual Behavior
Debug Output
Crash Output
Additional Context
This is happening inside a debain docker container running on a mac M1 MBP with docker desktop. Plan is GKE on x86 but for now M1 local testing
References