Skip to content

Issue with import mongodbatlas_cloud_provider_snapshot_restore_job #109

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

Closed
ghost opened this issue Jan 22, 2020 · 1 comment · Fixed by #131
Closed

Issue with import mongodbatlas_cloud_provider_snapshot_restore_job #109

ghost opened this issue Jan 22, 2020 · 1 comment · Fixed by #131

Comments

@ghost
Copy link

ghost commented Jan 22, 2020

This issue was originally opened by @sushilvarma2 as hashicorp/terraform#23903. It was migrated here as a result of the provider split. The original body of the issue is below.


Hello All,

We have an issue where mongo db cluster was created through Terraform. And Snapshot was created manually. I am trying to import snapshot details using terraform import. I have used the command as mentioned here:

Since my clustername has hyphen in it so terraform is not able to understand this request and throwing an error.
clusterName: projectname-environment-mongo-global-cluster
Can someone suggest please how I can overcome this issue ?

Command:
terraform import mongodbatlas_cloud_provider_snapshot_restore_job.test 5cf5a45a9ccf6400e60981b6-MyCluster-5d1b654ecf09a24b888f4c79

Reference:
Project_id, cluster_name and snapshot_id (Unique identifier of the snapshot), in the format PROJECTID-CLUSTERNAME-JOBID
https://www.terraform.io/docs/providers/mongodbatlas/r/cloud_provider_snapshot_restore_job.html

@themantissa
Copy link
Collaborator

@marinsalinas or @PacoDw any way we can work around importing a cluster name that has hyphens when trying to import?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant