How can I import a Resource of a Project on Digitalocean? #1032
Replies: 7 comments
-
Droplets inside a project not created by Terraform should be able to be imported without issue. Though if the Droplet is recreated it will be placed in the default project unless you also use the The
This will "create" a new |
Beta Was this translation helpful? Give feedback.
-
Thank you for the comment. But I am not been able to import the droplet too. When I try to import it via terraform import, it doesn’t show anything on the output. For instance, I can able to import a project and it shows the terraform state of the project, but I couldn’t able to done the same for droplets. My assumptions was that due to the existence of the droplet is inside a project, it couldn’t able to find it. |
Beta Was this translation helpful? Give feedback.
-
Can you share what you are seeing when you attempt to import the Droplet? |
Beta Was this translation helpful? Give feedback.
-
Do you want the info with trace logs? It shows that the resource has imported successfully, but nothing shows on the state. The output is empty. |
Beta Was this translation helpful? Give feedback.
-
Hi, You can see it shows that the import is successful, but there is noting imported shown above. |
Beta Was this translation helpful? Give feedback.
-
FYI
And this is on my
|
Beta Was this translation helpful? Give feedback.
-
Hi, I have fixed the issue. I needed to write the
And it was imported successfully. |
Beta Was this translation helpful? Give feedback.
-
I am trying to import a
droplet
viaterraform import
but as the droplet is inside a project. I cannot import it. I also looked into the docs and found that the importing of resources of a project is not supported. https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/project_resourcesAny Idea how I can retrieve the information of a resource even if its inside a project not made by terraform?
Beta Was this translation helpful? Give feedback.
All reactions