├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── conditional_resource_or_module_instance ├── README.md ├── conditional_resource_creation_count │ ├── README.md │ └── main.tf └── conditional_resource_creation_foreach │ ├── README.md │ └── main.tf ├── looping_for_resource_blocks ├── README.md ├── dynamic_n_instances │ ├── README.md │ └── main.tf └── dynamic_singleton │ ├── README.md │ ├── main.tf │ └── variables.tf ├── looping_for_resources_or_modules ├── README.md ├── count_index_antipattern │ ├── README.md │ └── main.tf ├── map_of_objects │ ├── README.md │ ├── main.tf │ └── terraform.tf └── set_of_objects_antipattern │ ├── README.md │ ├── main.tf │ └── terraform.tf ├── nested_maps ├── README.md └── flatten_nested_map │ ├── README.md │ └── main.tf └── passing_references ├── README.md ├── references_by_object ├── README.md └── main.tf └── references_by_string_antipattern ├── README.md └── main.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/SECURITY.md -------------------------------------------------------------------------------- /conditional_resource_or_module_instance/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/conditional_resource_or_module_instance/README.md -------------------------------------------------------------------------------- /conditional_resource_or_module_instance/conditional_resource_creation_count/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/conditional_resource_or_module_instance/conditional_resource_creation_count/README.md -------------------------------------------------------------------------------- /conditional_resource_or_module_instance/conditional_resource_creation_count/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/conditional_resource_or_module_instance/conditional_resource_creation_count/main.tf -------------------------------------------------------------------------------- /conditional_resource_or_module_instance/conditional_resource_creation_foreach/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/conditional_resource_or_module_instance/conditional_resource_creation_foreach/README.md -------------------------------------------------------------------------------- /conditional_resource_or_module_instance/conditional_resource_creation_foreach/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/conditional_resource_or_module_instance/conditional_resource_creation_foreach/main.tf -------------------------------------------------------------------------------- /looping_for_resource_blocks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resource_blocks/README.md -------------------------------------------------------------------------------- /looping_for_resource_blocks/dynamic_n_instances/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resource_blocks/dynamic_n_instances/README.md -------------------------------------------------------------------------------- /looping_for_resource_blocks/dynamic_n_instances/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resource_blocks/dynamic_n_instances/main.tf -------------------------------------------------------------------------------- /looping_for_resource_blocks/dynamic_singleton/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resource_blocks/dynamic_singleton/README.md -------------------------------------------------------------------------------- /looping_for_resource_blocks/dynamic_singleton/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resource_blocks/dynamic_singleton/main.tf -------------------------------------------------------------------------------- /looping_for_resource_blocks/dynamic_singleton/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resource_blocks/dynamic_singleton/variables.tf -------------------------------------------------------------------------------- /looping_for_resources_or_modules/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/README.md -------------------------------------------------------------------------------- /looping_for_resources_or_modules/count_index_antipattern/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/count_index_antipattern/README.md -------------------------------------------------------------------------------- /looping_for_resources_or_modules/count_index_antipattern/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/count_index_antipattern/main.tf -------------------------------------------------------------------------------- /looping_for_resources_or_modules/map_of_objects/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/map_of_objects/README.md -------------------------------------------------------------------------------- /looping_for_resources_or_modules/map_of_objects/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/map_of_objects/main.tf -------------------------------------------------------------------------------- /looping_for_resources_or_modules/map_of_objects/terraform.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/map_of_objects/terraform.tf -------------------------------------------------------------------------------- /looping_for_resources_or_modules/set_of_objects_antipattern/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/set_of_objects_antipattern/README.md -------------------------------------------------------------------------------- /looping_for_resources_or_modules/set_of_objects_antipattern/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/set_of_objects_antipattern/main.tf -------------------------------------------------------------------------------- /looping_for_resources_or_modules/set_of_objects_antipattern/terraform.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/looping_for_resources_or_modules/set_of_objects_antipattern/terraform.tf -------------------------------------------------------------------------------- /nested_maps/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/nested_maps/README.md -------------------------------------------------------------------------------- /nested_maps/flatten_nested_map/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/nested_maps/flatten_nested_map/README.md -------------------------------------------------------------------------------- /nested_maps/flatten_nested_map/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/nested_maps/flatten_nested_map/main.tf -------------------------------------------------------------------------------- /passing_references/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/passing_references/README.md -------------------------------------------------------------------------------- /passing_references/references_by_object/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/passing_references/references_by_object/README.md -------------------------------------------------------------------------------- /passing_references/references_by_object/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/passing_references/references_by_object/main.tf -------------------------------------------------------------------------------- /passing_references/references_by_string_antipattern/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/passing_references/references_by_string_antipattern/README.md -------------------------------------------------------------------------------- /passing_references/references_by_string_antipattern/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure/terraform-robust-module-design/HEAD/passing_references/references_by_string_antipattern/main.tf --------------------------------------------------------------------------------