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 &ldquo;Provider Configuration Not Present&rdquo; error, also known as the &ldquo;chicken and egg problem.&quot;</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&rsquo;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>
Tags: resolve Common