Use the module wrapper pattern for multiple resources
masterThe wrappers module implements a single module wrapper pattern. This allows you to manage multiple instances of the ALB/NLB module within a single configuration block. This is particularly useful in environments like Terragrunt where native Terraform for_each might not be feasible, or when you want to manage multiple resources without duplicating configuration files.
This wrapper does not add new functionality; it simply passes arguments through to the underlying root module. It uses two primary input maps:
defaults: A map of arguments applied to every instance created in theitemsmap.items: A map where each key represents a unique instance and the value is a map of arguments specific to that instance (which can override or supplement defaults).