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
When trying to import an existing argocd application into the terraform resource Terraform fails to do so and complains about me trying to import a resource that doesn't exist
> terraform import -var-file vars_development_us-east-1.tfvars argocd_application.airbyte airbyte:airbyte
argocd_application.airbyte: Importing from ID "airbyte:airbyte"...
argocd_application.airbyte: Import prepared!
Prepared argocd_application for import
argocd_application.airbyte: Refreshing state... [id=airbyte:airbyte]
╷
│ Error: Cannot import non-existent remote object
│
│ While attempting to import an existing object to "argocd_application.airbyte", the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check that the id is
│ correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It seems the provider isn't generating the id of the resource correctly so when you create a resource it just shows argocd_application.myapp: Creation complete after 5s. [id=myapp:] instead of argocd_application.myapp: Creation complete after 5s [id=myapp:namespace] so if you try with terraform import argocd_application.myapp myapp: it should work for now.
Affected Resource(s)
Terraform Configuration Files
Issue Description
When trying to import an existing argocd application into the terraform resource Terraform fails to do so and complains about me trying to import a resource that doesn't exist
However the resource does exist
Debug Output
https://gist.github.com/pedrojflores/7a8f1602d209f36bd5300cb3c10345ef
Panic Output
No crash.log available as the provider does not crash
Steps to Reproduce
Expected Behavior
The expected behavior here would be that the resource is imported successfully
Actual Behavior
Terraform complains about the resource I'm trying to import does not exist
Important Factoids
References
n/a
Community Note
The text was updated successfully, but these errors were encountered: