-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
tlspc_application.app: Destroying... [id=ee9926d0-42ba-11f0-87a3-31249e61b1d7]
╷
│ Error: Error Deleting Application
│
│ Could not delete Application ID ee9926d0-42ba-11f0-87a3-31249e61b1d7: Failed to delete certificate template; response was: {"errors":[{"code":20226,"message":"Unable to delete the application
│ \"tiger-response-tlspk\" as it will impact the following related resources. Please reassign or remove all related resources to proceed:
│ SERVICE_ACCOUNT(eebcf4be-42ba-11f0-ae80-16bd14caa76a)","args":["tiger-response-tlspk","SERVICE_ACCOUNT(eebcf4be-42ba-11f0-ae80-16bd14caa76a)"]}]}
╵
To Reproduce
Steps to reproduce the behavior:
- Create an app
- Issue a certificate via the application
- Attempt to destroy the app via terraform
- See the error similar to above
To "fix" you actually need to remove the CA Templates from the app first.
After that, you can delete the app with terraform.
Expected behavior
- Correct error message, which is mainly down to the TLSPC API, but we could add some vaguely more useful error instead maybe.
- Delete the app. If I really wanted to keep it, I'd use terraform deletion protection feature.
Environment (please complete the following information):
- Terraform: [e.g. 1.10.0]
- Other Providers and versions:
Additional context
Been using the hack of manually deleting the CAs for a while, so raising so I can remind myself to fix it.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working