Bug Description
Project creations fail mid-deployment with an Error 400 if the user supplies a Project ID longer than 30 characters.
Environment and Deployment Context
Please provide details about your deployment to help us reproduce the issue.
- Stellar Engine Version/Commit:
main
- Deployment Type:
- FAST Stage (if applicable):
- Affected Component:
fast/assets/schemas/project.schema.yaml
- Terraform Version: 1.5.7
- GCP Provider Version: 5.10.0
Steps to Reproduce
Steps to reproduce the behavior:
- Provide a Project ID exceeding 30 characters in the
terraform.tfvars file.
- Run
terraform apply.
- See error
googleapi: Error 400: field [project_id] has issue.
Expected Behavior
The Terraform plan should fail cleanly before any API calls are made, warning the user about the length constraint.
Actual Behavior
The Terraform apply executes and fails midway through the deployment, potentially leaving the state file dirty.
Relevant Logs and Errors
Error: error creating project proj-bu2-p-sample-floating-5x0i
googleapi: Error 400: field [project_id] has issue [project_id must be at most 30 characters long]
Additional Context
Adding a native Terraform validation block (condition = length(var.project_id) <= 30) to the project variables will resolve this. This was explicitly requested in the legacy Feature Braindump from 2023.
Bug Description
Project creations fail mid-deployment with an
Error 400if the user supplies a Project ID longer than 30 characters.Environment and Deployment Context
Please provide details about your deployment to help us reproduce the issue.
mainfast/assets/schemas/project.schema.yamlSteps to Reproduce
Steps to reproduce the behavior:
terraform.tfvarsfile.terraform apply.googleapi: Error 400: field [project_id] has issue.Expected Behavior
The Terraform
planshould fail cleanly before any API calls are made, warning the user about the length constraint.Actual Behavior
The Terraform
applyexecutes and fails midway through the deployment, potentially leaving the state file dirty.Relevant Logs and Errors
Additional Context
Adding a native Terraform validation block (
condition = length(var.project_id) <= 30) to the project variables will resolve this. This was explicitly requested in the legacy Feature Braindump from 2023.