How to resolve common error “provider configuration not present” in Terraform
<p>Today, we will discuss and solve a common error that many of you might have encountered while using modules and nested modules in Terraform. We are going to address the “Provider Configuration Not Present” error, also known as the “chicken and egg problem."</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*MttfKpEc9OE-xtR2pMEKsQ.jpeg" style="height:479px; width:700px" /></p>
<p><strong>Problem Notification:</strong></p>
<p><strong>Terraform provider configuration not present error occurs when the nested module tries to access the resource in the parent module.</strong></p>
<p>For Example, let’s say we are using terraform Azure module to create Azure infrastructure. We are creating azure app services using terraform code in a development environment in eastus region. Here is the directory structure.</p>
<p><a href="https://medium.com/@sonalishah_63223/resolving-the-provider-configuration-not-present-in-terraform-a1698239e485"><strong>Visit Now</strong></a></p>