Closed ruzickap closed 2 years ago
Hi @ruzickap
Sorry, but the updated version for 2022.4
with this fix was not released yet
It is planned to be released this week.
We will update you when it will be ready in this issue
Thank you for explanation. Can we keep this opened till fix for 2022.04 will be released please? Once the fix for Aqua 2022.04 will be released - I'll give it a try and update/close the issue.
@ruzickap Of course.
Hey @ruzickap The 2022.4, update 4 was released today
Thank you... I'll test it next week :-)
This is now working fine....
I was able to remove enforcer with "registered k8s cluster" without any issues.
Thank you for fixing it :-)
@ruzickap thank you for testing it
Terraform Aqua provider doesn't properly destroy "aquasec_enforcer_groups".
This issue should be fixed here https://github.com/aquasecurity/terraform-provider-aquasec/issues/135, but it wasn't. (this time I updated the aqusec provider to latest v0.8.12 to verify it)
Terraform Version
Affected Resource(s)
Steps to Reproduce
I'm using this code to create enforcer groups in Aqua:
Install kube-enforcer to k8s cluster:
Once the enforcer groups are create I connected my k8s cluster and everything is working like expected:
The problem appeared when I tried to run
terraform destroy
where I'm getting:When I delete the k8s cluster I can not destroy it either (see "red" disconnected enforcers):
I need to manually delete connections/enforcers in Aqua GUI and then I can destroy it:
-> Terraform should be able to destroy enforcer groups without any manual intervention.
Use case - we are creating / deleting k8s clusters for testing purposes therefore we would like to automate the whole process: