-
Notifications
You must be signed in to change notification settings - Fork 543
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
"activate_api_identities"throwing error that email can't be null #751
Comments
when I removed the "compute.googleapis.com" part in "activate_api_identities" list, terraform plan ran successfully. why? |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
@katiyuki this maybe because the compute API does not return the service identity. Usually a way to check if a service supports returns an identity is by running the gcloud command |
It is needed for very few APIs like healthcare etc. There is no way to find which API is supported. It should not be used unless user is aware of the API which needs it. |
I have added in the variable description that it only APIs which are supported by command |
TL;DR
I am using "activate_api_identities" with api "cloudfunctions.googleapis.com" so I can create the "appspot" google managed service account, and assign roles to it. terraform plan fails with:
on .terraform/modules/project-factory/modules/project_services/main.tf line 84, in resource "google_project_iam_member" "project_service_identity_roles":"
member = "serviceAccount:${each.value.email}
each.value.email is null
The expression result is null. Cannot include a null value in a string template
Expected behavior
terraform plan to succeed, with use of activate_api_identities", mapping API to roles
Observed behavior
on .terraform/modules/project-factory/modules/project_services/main.tf line 84, in resource "google_project_iam_member" "project_service_identity_roles":"
member = "serviceAccount:${each.value.email}
each.value.email is null
The expression result is null. Cannot include a null value in a string template
Terraform Configuration
Terraform Version
Additional information
No response
The text was updated successfully, but these errors were encountered: