hashicorp / terraform-provider-terraform

Terraform terraform provider
https://www.terraform.io/docs/providers/terraform/
Mozilla Public License 2.0
23 stars 22 forks source link

Cryptic error issue when TF plan cannot access remote state file #20

Open joestump opened 6 years ago

joestump commented 6 years ago

We had an issue recently where ATLAS_TOKEN wasn't set. The downstream plan failed, but didn't fail as I'd expect with an error related to lack of permissions/access. Instead it said an expected output wasn't present in the remote state.

Terraform Version

0.11.3

Affected Resource(s)

terraform_remote_state

Expected Behavior

TF should show a reasonable error when it cannot access the remote state requested.

Actual Behavior

* module.deviner-dev001.aws_route53_record.main: Resource 'data.terraform_remote_state.dmp-iac-main-network' does not have attribute 'private_dns_zones' for variable 'data.terraform_remote_state.dmp-iac-main-network.private_dns_zones'