getsentry / tacos-gha

Terraform Automation & Collaboration Software (TACOS) help organizations to scale the use of Terraform by enabling collaboration through governance, access controls, and automation of Terraform runs.
Apache License 2.0
1 stars 0 forks source link

TACOS failed to plan, had to run locally #226

Open mwarkentin opened 3 months ago

mwarkentin commented 3 months ago
          https://github.com/getsentry/ops/pull/11045#issuecomment-2178869420

https://github.com/getsentry/ops/actions/runs/9583980312

Had to run locally to get:

│ Error: Invalid value for input variable
│
│   on main.tf line 128, in module "instances":
│  128:   additional_disks = [
│  129:     google_compute_disk.data[each.key].name,
│  130:   ]
│
│ The given value is not suitable for module.instances.var.additional_disks
│ declared at
│ .terraform/modules/instances/instance_salt/_variables.tf:105,1-28: map of
│ object required.
╵
ERRO[0014] Terraform invocation failed in /Users/mwarkentin/repos/sentry/ops/terragrunt/regions/multi-tenant/clickhouse/snuba-generic-metrics-distributions/de/.terragrunt-cache/hoGDh_7488FOX2UZWs4a6aaiLiM/0rghWROp0gJdHK4BUmBouoAzp4g/cluster_clickhouse  prefix=[/Users/mwarkentin/repos/sentry/ops/terragrunt/regions/multi-tenant/clickhouse/snuba-generic-metrics-distributions/de]
ERRO[0014] 1 error occurred:
    * exit status 1

I was able to get this plan working without any further changes locally by removing .terragrunt-cache/, not sure why this isn't working on GHA, I thought it inits from scratch each time.

Originally posted by @mwarkentin in https://github.com/getsentry/tacos-gha/issues/220#issuecomment-2178884742