Skip to content

Instantly share code, notes, and snippets.

@sudomann
Created February 4, 2019 18:26
Show Gist options
  • Save sudomann/b65adbad7fc1f12859130459d2911da6 to your computer and use it in GitHub Desktop.
Save sudomann/b65adbad7fc1f12859130459d2911da6 to your computer and use it in GitHub Desktop.
data.google_compute_zones fails to inherit `project` from provider in parent module
$ terraform plan
yableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
oduleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
yableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google (close) - *terraform.graphNodeCloseProvider
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 (close) - *terraform.graphNodeCloseProvider
module.gcp.module.us-east4.module.iroha_node.data.google_compute_image.ubuntu - *terraform.NodeAbstractResource
module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available - *terraform.NodeAbstractResource
module.gcp.module.us-east4.module.iroha_node.google_compute_instance.iroha_instance - *terraform.NodeAbstractResource
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
pplyableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google (close) - *terraform.graphNodeCloseProvider
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 (close) - *terraform.graphNodeCloseProvider
module.gcp.module.us-east4.module.iroha_node.data.google_compute_image.ubuntu - *terraform.NodeAbstractResource
module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available - *terraform.NodeAbstractResource
module.gcp.module.us-east4.module.iroha_node.google_compute_instance.iroha_instance - *terraform.NodeAbstractResource
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
leVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google (close) - *terraform.graphNodeCloseProvider
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 (close) - *terraform.graphNodeCloseProvider
module.gcp.module.us-east4.module.iroha_node.data.google_compute_image.ubuntu - *terraform.NodeAbstractResource
module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available - *terraform.NodeAbstractResource
module.gcp.module.us-east4.module.iroha_node.google_compute_instance.iroha_instance - *terraform.NodeAbstractResource
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
root - terraform.graphNodeRoot
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
module.gcp.provider.google (close) - *terraform.graphNodeCloseProvider
module.gcp.provider.google.us-east4 (close) - *terraform.graphNodeCloseProvider
eApplyableProvider
module.gcp.provider.google.us-east4 (close) - *terraform.graphNodeCloseProvider
module.gcp.module.us-east4.module.iroha_node.google_compute_instance.iroha_instance - *terraform.NodeAbstractResource
root - terraform.graphNodeRoot
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
module.gcp.provider.google (close) - *terraform.graphNodeCloseProvider
module.gcp.provider.google.us-east4 (close) - *terraform.graphNodeCloseProvider
-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeValidatableResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
me - *terraform.NodeApplyableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeValidatableResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeValidatableResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google (close) - *terraform.graphNodeCloseProvider
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeValidatableResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 (close) - *terraform.graphNodeCloseProvider
module.gcp.module.us-east4.module.iroha_node.data.google_compute_image.ubuntu - *terraform.NodeValidatableResource
module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available - *terraform.NodeValidatableResource
module.gcp.module.us-east4.module.iroha_node.google_compute_instance.iroha_instance - *terraform.NodeValidatableResource
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
t4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeValidatableResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.data.google_compute_image.ubuntu - *terraform.NodeValidatableResource
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available - *terraform.NodeValidatableResource
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.google_compute_instance.iroha_instance - *terraform.NodeValidatableResource
module.gcp.module.us-east4.module.iroha_node.data.google_compute_image.ubuntu - *terraform.NodeValidatableResource
module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available - *terraform.NodeValidatableResource
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeValidatableResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.google_compute_image.ubuntu: Refreshing state...
data.google_compute_zones.available: Refreshing state...
2019/02/04 13:21:54 [ERROR] root.gcp.us-east4.iroha_node: eval: *terraform.EvalReadDataApply, err: data.google_compute_zones.available: project: required field is not set
2019/02/04 13:21:54 [ERROR] root.gcp.us-east4.iroha_node: eval: *terraform.EvalSequence, err: data.google_compute_zones.available: project: required field is not set
2019/02/04 13:21:54 [TRACE] [walkRefresh] Exiting eval tree: module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available
Error: Error refreshing state: 1 error(s) occurred:
* module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available: 1 error(s) occurred:
* module.gcp.module.us-east4.module.iroha_node.data.google_compute_zones.available: data.google_compute_zones.available: project: required field is not set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment