Firewall Managed Rules and Terraform


I’m looking for ideas on how to best represent the Firewall Managed Rules in Terraform. We have a couple of domains, we’ve only enabled some of the Groups and we’ve only overridden 5 actual rules or so…

Has everyone codified the 1000s of rules and then overridden them with variables or is there a better way?