Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent name prefix length error for bigquery #52

Open
adatzer opened this issue Feb 6, 2023 · 0 comments
Open

Prevent name prefix length error for bigquery #52

adatzer opened this issue Feb 6, 2023 · 0 comments

Comments

@adatzer
Copy link

adatzer commented Feb 6, 2023

With bigquery default pipeline, when prefix is more than 6 characters long, terraform plan errors with:

│ Error: "name_prefix" cannot be longer than 37 characters, name is limited to 63
│ 
│   with module.bigquery_loader[0].google_compute_instance_template.tpl["streamloader"],
│   on .terraform/modules/bigquery_loader/main.tf line 309, in resource "google_compute_instance_template" "tpl":
│  309:   name_prefix = "${var.name}-${each.key}-"

Info to reproduce:

  • On Terraform 1.3.0
  • On gcp/pipeline/default
  • In bigquery.terraform.tfvars supply a prefix with a value more than 6 chars long,e.g. testersp
  • terraform init and terraform plan -var-file=bigquery.terraform.tfvars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant