Upon running:
terraform \
-chdir="${TERRAFORM_RUN_DIR}" \
plan
I encounter this error, I've replaced sensitive information with
│ Error: Error in function call
│
│ on main.tf line 114, in resource "local_file" "feature_store_configuration":
│ 114: content = templatefile("${local.source_root_dir}/config/${var.feature_store_config_env}.yaml.tftpl", {
│ 115: project_id = var.feature_store_project_id
│ 116: project_name = data.google_project.feature_store_project.name
│ 117: project_number = data.google_project.feature_store_project.number
│ 118: cloud_region = var.google_default_region
│ 119: mds_project_id = var.data_project_id
│ 120: mds_dataset = "${var.mds_dataset_prefix}_${local.mds_dataset_suffix}"
│ 121: website_url = var.website_url
│ 122: pipelines_github_owner = var.pipelines_github_owner
│ 123: pipelines_github_repo = var.pipelines_github_repo
│ 124: # TODO: this needs to be specific to environment.
│ 125: location = var.destination_data_location
│ 126: time_zone = var.time_zone
│ 127: pipeline_configuration = var.pipeline_configuration
│ 128: non_ecomm_events_list = var.non_ecomm_events_list
│ 129: non_ecomm_target_event = var.non_ecomm_target_event
│ 130: })
│ ├────────────────
│ │ while calling templatefile(path, vars)
│ │ data.google_project.feature_store_project.name is "My First Project"
│ │ data.google_project.feature_store_project.number is "<PROJECT NUMBER>"
│ │ local.mds_dataset_suffix is "<DATASET SUFFIX NUMBER>"
│ │ local.source_root_dir is "../.."
│ │ var.data_project_id is "<PROJECT ID>"
│ │ var.destination_data_location is "<PROJECT ID>.analytics_<DATASET SUFFIX NUMBER>"
│ │ var.feature_store_config_env is "config"
│ │ var.feature_store_project_id is "<PROJECT ID>"
│ │ var.google_default_region is "us-central1"
│ │ var.mds_dataset_prefix is "marketing_ga4_v1"
│ │ var.non_ecomm_events_list is empty list of string
│ │ var.non_ecomm_target_event is "login"
│ │ var.pipeline_configuration is map of map of object with 9 elements
│ │ var.pipelines_github_owner is "temporarily unused"
│ │ var.pipelines_github_repo is "temporarily unused"
│ │ var.time_zone is "America/New_York"
│ │ var.website_url is "<WEBSITE URL>"
│ Call to function "templatefile" failed: ../../config/config.yaml.tftpl:566,42-81: Missing map element; This map does not have an element with the key
│ "feature-creation-lead-score-propensity"., and 9 other diagnostic(s).
Should I edit the yaml.tftpl file to skip over these keys or should I be doing something else?
I am also encountering:
│ Error: projects/<MY PROJECT ID>/datasets/purchase_propensity not found
│
│ with module.monitoring[0].data.google_bigquery_dataset.purchase_propensity_dataset,
│ on modules/monitor/main.tf line 274, in data "google_bigquery_dataset" "purchase_propensity_dataset":
│ 274: data "google_bigquery_dataset" "purchase_propensity_dataset" {
Upon running:
I encounter this error, I've replaced sensitive information with
Should I edit the yaml.tftpl file to skip over these keys or should I be doing something else?
I am also encountering: