-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import export bucket - bad state id encoding #708
Comments
Thank you @sophos-daniels for the complete issue. We will look into it. Internal ticket: INTMDB-315 |
This was referenced Apr 15, 2022
@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! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
terraform import "module.atlas_backup_export[0].mongodbatlas_cloud_backup_snapshot_export_bucket.this" someProjectId-someBucketId
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:terraform-provider-mongodbatlas/mongodbatlas/resource_mongodbatlas_cloud_backup_snapshot_export_bucket.go
Lines 158 to 161 in 778064b
And the read function is looking for
bucketID
in the keyid
in the decoded id map?terraform-provider-mongodbatlas/mongodbatlas/resource_mongodbatlas_cloud_backup_snapshot_export_bucket.go
Lines 89 to 108 in 778064b
Debug Output
References
The text was updated successfully, but these errors were encountered: