Add Terraform Resource Tracking for resource created by Terraform
under review
L
Lilac Newt
We'd like for Harness to be able to track resources that were created by Terraform. For example, if I created a user via Terraform, the Harness UI should be able to know that the user was created via Terraform. We'd additionally like for resources created by Terraform to be forbidden from being accidentally changed so as not to disrupt the state file. We understand there's a way to achieve this with the current RBAC capabilities but having a native feature for this would make the process much easier.
Log In
L
Lilac Newt
Sorry for a delayed response.
The use case for this:
- a user was added to Harness via Terraform (resource harness_platform_user)
- the user later left the company, their Harness user was deleted during the offboarding process
- I don't know exactly how the Harness user was deleted, I assume it was either done manually via Harness UI/API or via Okta
- We can try to figure out how exactly the Harness user was deleted if those details are important
- once the Harness user got deleted, Terraform stopped working because TF state and Harness were out of sync
- what makes it more complicated is that Terraform stops working even on unrelated changes (e.g. add a new project that has nothing to do with the Harness user under discussion)
- a solution would be to delete user resource at TF side, but the error message is not straightforward
I am available for a discovery call as well.
Prateek Mittal
Hi Stanislau, Can you elaborate on what is the use case behind it. And if possible can we do discovery call to understand the scenario better?
Prateek Mittal
under review