Open renanbr opened 1 month ago
Hi Renan,
Thank you for your feedback regarding the use of project resources in our API. I appreciate your input.
A bit more context about the issue:
digitalocean_project_resources
requires resources to follow urn
format: api doc.
Using raw uuid
instead of urn
or anything that doesn't follow the urn
format triggers an error on terraform apply
:
Error: Error creating Project: Error assigning resources: POST https://api.digitalocean.com/v2/projects/34f99b72-4f48-49c1-bc2d-48722a56997a/resources: 400 (request "abc123") resource objects must have an urn in the following format: do:resource_type:resource_id
I appreciate you bringing this to our attention. I’ll need to discuss it with the team to determine the priority and the best approach to enhance the user experience.
Bug Report
I'm importing existing resources.
When defining a project where I would like to attach the replica, URN isn't available.
Describe the bug
The
apply
command doesn't work.Affected Resource(s)
Expected Behavior
Having the replace attached to the project.
Actual Behavior
Steps to Reproduce
digitalocean_project
resourcedigitalocean_database_cluster
resourcedigitalocean_database_replica
resourcedigitalocean_project
resourceterraform apply
Terraform Configuration Files
Terraform version
Debug Output
none
Panic Output
none
Additional context
I'm currently interpolating the id when attaching it to the project.
Important Factoids
I'm aware about the solution found in #639
References
none