Closed ghost closed 2 years ago
Thank you @sophos-daniels for the complete issue. We will look into it.
Internal ticket: INTMDB-315
@sophos-daniels this is corrected in version 1.4.0, which is now available as a pre-release version in this repo. We will release it tomorrow.
@sophos-daniels this is now out in 1.4.1.
Thank you!
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
Expected Behavior
The existing export bucket should have been successfully imported into state.
Actual Behavior
I believe the import fails because the import state function passes the wrong map keys to the
encodeStateID
function here: https://github.com/mongodb/terraform-provider-mongodbatlas/blob/778064bb2aabc2a018e8c44f9ae467a840575711/mongodbatlas/resource_mongodbatlas_cloud_backup_snapshot_export_bucket.go#L158-L161And the read function is looking for
bucketID
in the keyid
in the decoded id map? https://github.com/mongodb/terraform-provider-mongodbatlas/blob/778064bb2aabc2a018e8c44f9ae467a840575711/mongodbatlas/resource_mongodbatlas_cloud_backup_snapshot_export_bucket.go#L89-L108Debug Output
References