add count to disable modules on demand
We have two core pieces of infra in our EKS cluster creation script, one is the cluster itself and one the development parts.
To resolve this issue an idea would be to use count = var.modulename_enable ? 1 : 0
in each module that is not needed to deploy the cluster (e.g. rd instances).
Analyze the resources that are not required to make the cluster work and add the count value to it, give a different toggle to each module. e.g.
psql rds -> count = var.rdspsql_enable ? 1 : 0
fortify rds -> count = var.fortify_enable ? 1 : 0
Edited by Danilo Patrucco