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

Error message for long project name is unclear #1498

Closed
morgante opened this issue May 16, 2018 · 2 comments
Closed

Error message for long project name is unclear #1498

morgante opened this issue May 16, 2018 · 2 comments

Comments

@morgante
Copy link

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Affected Resource(s)

Please list the resources as a list, for example:

  • google_project

Terraform Configuration Files

resource "google_project" "long_project" {
  name       = "long-project-id-is-longer-than-it-should-be"
  project_id = "long-project-id-is-longer-than-it-should-be"
  org_id     = "${var.organization_id}"
}

Expected Behavior

I get some sort of error that explains my project ID is too long, ideally before the API request is even made.

Actual Behavior

When I run apply, I get this unhelpful error:

* google_project.long_project: Error creating project long-project-id-is-longer-than-it-should-be (long-project-id-is-longer-than-it-should-be): googleapi: Error 400: Request contains an invalid argument., badRequest.
@danawillow
Copy link
Contributor

Fixed in #1519

@ghost
Copy link

ghost commented Nov 18, 2018

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants