GeistHaus
log in · sign up

Module Composition | OpenTofu

opentofu.org

Module composition allows infrastructure to be described from modular building blocks.

1 page links to this URL
IaC and Abstraction

Note I will refer to OpenTofu but unless otherwise specified, everything applies to Terrraform as well. OpenTofu recently released 1.9.0 with provider for_each support, also known as dynamic provider configuration. This is actually a pretty old request. The original ticket is from 2019, before even version 1.0.0 of Terraform was released. A provider is a library that enables Tofu to interact with services. They cover everything from the major cloud providers to services like PagerDuty. To use a provider, you instantiate it with a configuration. The issue is they cannot be referenced through variables, which means the Tofu code can become very repetitive. Dynamic provider configuration addresses this limitation.

0 inbound links article en posts IacSoftware Engineering