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

target_id in below module is not accepting the organization id when set as a variable #145

Open
raghu-babloo opened this issue Nov 9, 2021 · 0 comments
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work

Comments

@raghu-babloo
Copy link

raghu-babloo commented Nov 9, 2021

module "custom-roles" {
  source = "terraform-google-modules/iam/google//modules/custom_role_iam"

  target_level         = "org"
  target_id            = "xxxxxxxxxxxxx"
  role_id              = "custom_role_id"
  title                = "Custom Role Unique Title"
  description          = "Custom Role Description"
  base_roles           = ["roles/iam.serviceAccountAdmin"]
  permissions          = ["iam.roles.list", "iam.roles.create", "iam.roles.delete"]
  excluded_permissions = ["iam.serviceAccounts.setIamPolicy"]
  members              = ["user:[email protected]", "group:[email protected]"]
}

Below is the error logs which is also not accurate as the issue is with target_id is not accepting the organization id when set as a variable.

 Error: Error retrieving permissions: googleapi: Error 400: Request contains an invalid argument.
│
│   with module.security-team-org-role.data.google_iam_testable_permissions.unsupported_permissions,
│   on .terraform/modules/security-team-org-role/modules/custom_role_iam/main.tf line 35, in data "google_iam_testable_permissions" "unsupported_permissions":
│   35: data "google_iam_testable_permissions" "unsupported_permissions" {
@morgante morgante added bug Something isn't working P2 high priority issues triaged Scoped and ready for work labels Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work
Projects
None yet
Development

No branches or pull requests

2 participants