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

Support for google_app_engine_default_service_account #2998

Closed

Comments

@radkomateusz
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 the 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 the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Hello, I would like to have data source like: google_app_engine_default_service_account ([email protected]).
It's very similar to google_compute_default_service_account.

@kolaworld
Copy link

Hi, echoing this issue and my past issue which was closed without being resolved.

When default service accounts are made by google, they can have all numeric ids (i.e. App Engine default service account). However, when you try to pull in these service accounts using a data block like so:

data "google_service_account" "default_app_engine_service_account" {
  project = "my-project"
  account_id = "1234567" //note this is the default ID set on service accounts provided by google
}

You get this error:

"account_id" ("1234567") doesn't match regexp "^[a-z](?:[-a-z0-9]{4,28}[a-z0-9])$"

An easy fix would be to relax the regexp or provide a specific data sources as recommenced by the OP. Thank you.

@paddycarver paddycarver added this to the Goals milestone Dec 11, 2019
@evralston
Copy link

evralston commented May 20, 2020

An adjacent issue (the regex validation of service account IDs in IAM policy resources) was addressed in #1390 which probably will help with the implementation of fixing this.

Disregard this -- it applies to the general case in kolaworld's comment, and not to the specific app_engine case in this ticket description.

@ghost
Copy link

ghost commented Nov 8, 2020

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 as resolved and limited conversation to collaborators Nov 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.