AWS Terraform tries to delete the rule group before disassociating from firewall policy

Hi ,

When removing the existing rule group , terraform first tries to delete the rule group before disassociating from firewall policy and afterward gets “Still destroying” forever.

After using lifecycle create_before_destroy , When there is a change in the order of the rules or replace operation on current rule , terraform tries to replace and then i’m getting
InvalidRequestException: A resource with the specified name already exists

Is there any way to overcome this issue ?

1 Like