You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Create a folder structure in your terraform repository like:
env (top level)
production (environment for separation)
warehouse.yaml
This will result in the project key being: prefix-production/warehouse which is an invalid project-id. It also isn't desirable to have the full folder name in the project name either.
Expected behavior
I would expect to be able to pass the project name and id in as data_overrides to allow for the immediate resolution of this, in combination with the ability for us to add our own suffixes etc to ensure unique project ids
Result
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: "mutd-production/test" project_id must be 6 to 30 with lowercase letters, digits, hyphens and start with a letter. Trailing hyphens are prohibited.
│
│ with module.project-factory.module.projects["production/test"].google_project.project[0],
│ on .terraform/modules/project-factory/modules/project/main.tf line 48, in resource "google_project" "project":
│ 48: project_id = "${local.prefix}${var.name}"
The text was updated successfully, but these errors were encountered:
Describe the bug
If the YAML files for the source directory are in a folder structure like:
The each.key for the project name will be prefix-production/warehouse
This is only an issue due to us not being able to override the project name and or project id
Environment
To Reproduce
Create a folder structure in your terraform repository like:
This will result in the project key being: prefix-production/warehouse which is an invalid project-id. It also isn't desirable to have the full folder name in the project name either.
Expected behavior
I would expect to be able to pass the project name and id in as data_overrides to allow for the immediate resolution of this, in combination with the ability for us to add our own suffixes etc to ensure unique project ids
Result
The text was updated successfully, but these errors were encountered: