Terraform: AWS provider configuration not available in delete module

Created on 9 Apr 2015  ยท  7Comments  ยท  Source: hashicorp/terraform

Simliar to https://github.com/hashicorp/terraform/issues/1380#issuecomment-91244154

Steps

  • Create a main.tf that declares and configures the aws provider.
  • Add a module (declares only aws resources, not the provider)
  • terraform apply - everything is created
  • Remove the module from main.tf
  • Run terraform plan

Result:

 $GOPATH/bin/terraform plan
There are warnings and/or errors related to your configuration. Please
fix these before continuing.

Errors:

  * provider.aws: "region": required field is not set

Tested using the following:

$GOPATH/bin/terraform --version
Terraform v0.4.1-dev (c0196d948d942a32a46fb9ef203076d3be134e4d)
bug core

Most helpful comment

The bug seems to resurface in TF 0.7.

All 7 comments

Should be fixed!

Is there already an open version of this bug? It seems to be happening again, if it was ever fixed.

The bug seems to resurface in TF 0.7.

as @apeeters pointed out, we're facing the same bug again after upgrade to TF 0.7.
We're using nested modules and while destroying them, terraform asks to enter value for region

Experiencing the same in TF v0.7.3

I experienced this suddenly today. I'm not sure exactly what did it, but after nuking .terraform folder and running terraform get my plan could execute

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings