• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

terraform-google-modules/terraform-google-service-accounts: This module allows e ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

terraform-google-modules/terraform-google-service-accounts

开源软件地址(OpenSource Url):

https://github.com/terraform-google-modules/terraform-google-service-accounts

开源编程语言(OpenSource Language):

HCL 47.7%

开源软件介绍(OpenSource Introduction):

Terraform Service Accounts Module

This module allows easy creation of one or more service accounts, and granting them basic roles.

The resources/services/activations/deletions that this module will create/trigger are:

  • one or more service accounts
  • optional project-level IAM role bindings for each service account
  • one optional billing IAM role binding per service account, at the organization or billing account level
  • two optional organization-level IAM bindings per service account, to enable the service accounts to create and manage Shared VPC networks
  • one optional service account key per service account

Compatibility

This module is meant for use with Terraform 0.13+ and tested using Terraform 1.0+. If you find incompatibilities using Terraform >=0.13, please open an issue. If you haven't upgraded and need a Terraform 0.12.x-compatible version of this module, the last released version intended for Terraform 0.12.x is v3.0.1.

Usage

Basic usage of this module is as follows:

module "service_accounts" {
  source        = "terraform-google-modules/service-accounts/google"
  version       = "~> 3.0"
  project_id    = "<PROJECT ID>"
  prefix        = "test-sa"
  names         = ["first", "second"]
  project_roles = [
    "project-foo=>roles/viewer",
    "project-spam=>roles/storage.objectViewer",
  ]
}

Functional examples are included in the examples directory.

Inputs

Name Description Type Default Required
billing_account_id If assigning billing role, specificy a billing account (default is to assign at the organizational level). string "" no
description Default description of the created service accounts (defaults to no description) string "" no
descriptions List of descriptions for the created service accounts (elements default to the value of description) list(string) [] no
display_name Display names of the created service accounts (defaults to 'Terraform-managed service account') string "Terraform-managed service account" no
generate_keys Generate keys for service accounts. bool false no
grant_billing_role Grant billing user role. bool false no
grant_xpn_roles Grant roles for shared VPC management. bool true no
names Names of the service accounts to create. list(string) [] no
org_id Id of the organization for org-level roles. string "" no
prefix Prefix applied to service account names. string "" no
project_id Project id where service account will be created. string n/a yes
project_roles Common roles to apply to all service accounts, project=>role as elements. list(string) [] no

Outputs

Name Description
email Service account email (for single use).
emails Service account emails by name.
emails_list Service account emails as list.
iam_email IAM-format service account email (for single use).
iam_emails IAM-format service account emails by name.
iam_emails_list IAM-format service account emails as list.
key Service account key (for single use).
keys Map of service account keys.
service_account Service account resource (for single use).
service_accounts Service account resources as list.
service_accounts_map Service account resources by name.

Requirements

These sections describe requirements for using this module.

Software

The following dependencies must be available:

IAM

Service account or user credentials with the following roles must be used to provision the resources of this module:

  • Service Account Admin: roles/iam.serviceAccountAdmin
  • (optional) Service Account Key Admin: roles/iam.serviceAccountKeyAdmin when generate_keys is set to true
  • (optional) roles needed to grant optional IAM roles at the project or organizational level

Contributing

Refer to the contribution guidelines for information on contributing to this module.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap