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

extra quotes / escape characters in error message for google_project_iam_member #7628

Assignees
Labels

Comments

@wyardley
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v0.13.5
+ provider registry.terraform.io/hashicorp/google v3.43.0
+ provider registry.terraform.io/hashicorp/google-beta v3.43.0

Affected Resource(s)

  • google_project_iam_member

Terraform Configuration Files

resource "google_project_iam_member" "bar-ai-admin" {
  project = var.project
  role    = "roles/ml.admin"
  member  = var.bar_email
}

Debug Output

Error: Request "Create IAM Members roles/ml.admin group:[email protected]  for \"project \\\"bar-wizzle\\\"\"" returned error: Error applying IAM policy for project "bar-wizzle": Error setting IAM policy for project "bar-wizzle": googleapi: Error 400: Group [email protected]  does not exist., badRequest

Can provide full debug output if needed.

Panic Output

Expected Behavior

Error: Request "Create IAM Members roles/ml.admin group:[email protected]  for project "bar-wizzle" returned error: Error applying IAM policy for project "bar-wizzle": Error setting IAM policy for project "bar-wizzle": googleapi: Error 400: Group [email protected]  does not exist., badRequest

Actual Behavior

Error: Request "Create IAM Members roles/ml.admin group:[email protected]  for \"project \\\"bar-wizzle\\\"\"" returned error: Error applying IAM policy for project "bar-wizzle": Error setting IAM policy for project "bar-wizzle": googleapi: Error 400: Group [email protected]  does not exist., badRequest

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@venkykuberan venkykuberan self-assigned this Oct 26, 2020
@venkykuberan
Copy link
Contributor

@wyardley the error message is about invalid email id for the member. Try using google account/service account

@wyardley
Copy link
Author

Right, it’s the formatting of the error, not the error itself I was opening an issue about (the extra quotes and backslash escaping).

@rileykarson said that the quoting is likely coming from the provider itself and not the API response.

@ghost ghost removed waiting-response labels Oct 26, 2020
nat-henderson added a commit to GoogleCloudPlatform/magic-modules that referenced this issue Oct 11, 2021
Fixes hashicorp/terraform-provider-google#7628.
Equally clear in the worst case, but less escaping most of the time.
nat-henderson added a commit to GoogleCloudPlatform/magic-modules that referenced this issue Oct 12, 2021
)

Fixes hashicorp/terraform-provider-google#7628.
Equally clear in the worst case, but less escaping most of the time.
modular-magician added a commit to modular-magician/terraform-google-conversion that referenced this issue Oct 12, 2021
…308)

Fixes hashicorp/terraform-provider-google#7628.
Equally clear in the worst case, but less escaping most of the time.

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit to GoogleCloudPlatform/terraform-google-conversion that referenced this issue Oct 12, 2021
…308) (#796)

Fixes hashicorp/terraform-provider-google#7628.
Equally clear in the worst case, but less escaping most of the time.

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit to modular-magician/terraform-provider-google-beta that referenced this issue Oct 12, 2021
…shicorp#5308)

Fixes hashicorp/terraform-provider-google#7628.
Equally clear in the worst case, but less escaping most of the time.

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit to modular-magician/terraform-provider-google that referenced this issue Oct 12, 2021
…shicorp#5308)

Fixes hashicorp#7628.
Equally clear in the worst case, but less escaping most of the time.

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit to hashicorp/terraform-provider-google-beta that referenced this issue Oct 12, 2021
) (#3723)

Fixes hashicorp/terraform-provider-google#7628.
Equally clear in the worst case, but less escaping most of the time.

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit that referenced this issue Oct 12, 2021
) (#10303)

Fixes #7628.
Equally clear in the worst case, but less escaping most of the time.

Signed-off-by: Modular Magician <[email protected]>
@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.