Skip to content

A basic terraform module example, which the example uses for a helm repo

License

Notifications You must be signed in to change notification settings

JamesWoolfenden/terraform-gcp-iam

Repository files navigation

terraform-gcp-iam

Build Status Latest Release pre-commit checkov

Requirements

No requirements.

Providers

Name Version
google n/a

Modules

No modules.

Resources

Name Type
google_project_iam_binding.Compute-OS-Admin-Login resource
google_project_iam_binding.Compute-OS-Login resource
google_project_iam_binding.browser resource
google_project_iam_binding.serviceAccountUsers resource
google_project_iam_binding.storageadmin resource
google_project_iam_binding.viewer resource
google_iam_role.roleinfo data source

Inputs

Name Description Type Default Required
browsers n/a list(any) n/a yes
osadminlogins n/a list(any) n/a yes
oslogins n/a list(any) n/a yes
project The GCP project to run against string n/a yes
region GCP region string n/a yes
serviceAccountUsers n/a list(any) n/a yes
storageadmins n/a list(any) n/a yes
viewers n/a list(any) n/a yes

Outputs

Name Description
included_permissions n/a
stage n/a
title n/a

Role and Permissions

The Terraform resource required is:

resource "google_project_iam_custom_role" "terraform_pike" {
  project     = "pike"
  role_id     = "terraform_pike"
  title       = "terraform_pike"
  description = "A user with least privileges"
  permissions = [
    "resourcemanager.projects.getIamPolicy",
    "resourcemanager.projects.setIamPolicy"
  ]
}

Related Projects

Check out these related projects.

Help

Got a question?

File a GitHub issue.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Copyrights

Copyright © 2021-23 James Woolfenden

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributors

James Woolfenden
James Woolfenden