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 |
|
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. |
|
Can you share what you are seeing when you attempt to import the Droplet? |
|
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. |
|
FYI And this is on my |
|
Hi, I have fixed the issue. I needed to write the And it was imported successfully. |

Uh oh!
There was an error while loading. Please reload this page.
I am trying to import a
dropletviaterraform importbut 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?
All reactions