You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: Unsupported attribute
│
│ on application/project.tf line 8, in resource "digitalocean_project" "default":
│ 8: digitalocean_database_replica.mysql_read_only.urn,
│
│ This object has no argument, nested block, or exported attribute named "urn". Did you mean "uri"?
Steps to Reproduce
Define a digitalocean_project resource
Define a digitalocean_database_cluster resource
Define a digitalocean_database_replica resource
Attach the replica as resource of a digitalocean_project resource
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
The text was updated successfully, but these errors were encountered: