This optional module is used to assign kms_crypto_key roles
module "kms_crypto_key-iam-bindings" {
source = "terraform-google-modules/iam/google//modules/kms_crypto_keys_iam"
kms_crypto_keys = ["my-kms_crypto_key_one", "my-kms_crypto_key_two"]
mode = "authoritative"
bindings = {
"roles/cloudkms.cryptoKeyEncrypter" = [
"user:my-user@my-org.com",
"group:my-group@my-org.com",
]
"roles/cloudkms.cryptoKeyDecrypter" = [
"user:my-user@my-org.com",
"group:my-group@my-org.com",
]
}
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
bindings | Map of role (key) and list of members (value) to add the IAM policies/bindings | map(list(string)) | n/a | yes |
kms_crypto_keys | KMS crypto keys list to add the IAM policies/bindings | list(string) | <list> |
no |
mode | Mode for adding the IAM policies/bindings, additive and authoritative | string | "additive" |
no |
Name | Description |
---|---|
kms_crypto_keys | KMS crypto keys which received bindings. |
members | Members which were bound to the KMS crypto keys. |
roles | Roles which were assigned to members. |