service-account
alxrem/service-account/yandex
Terraform module which describes service account in Yandex Cloud
Terraform Yandex Service Account module A terraform module to create a service account on Yandex Cloud. Module will manage service account, bindings to roles in the folder, static access keys of account, service account keys of account. Example usage ``terraform module "storage_admin" { source = "gitlab.com/tf-org-ru/service-account/yandex" version = "~> 2.0" name = "storage-admin" roles = ["storage.admin"] static_access_keys = {"default" = {}} } module "backup_sa" { source = "gitlab.com/tf-org-ru/service-account/yandex" version = "~> 2.0" name = "backup" service_account_key = {"default" = {}} } resource "yandex_storage_bucket" "default" { access_key = module.storage_admin.static_access_keys["default"]["access_key"] secret_key = module.storage_admin.static_access_keys["default"]["secret_ke
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name of the service account | required |
| static_access_keys | map(object({ description = | [Static access keys](https://cloud.yandex.com/docs/iam/operations/sa/create-ac | {} |
| service_account_keys | map(object({ description | [Authorized keys](https://cloud.yandex.com/docs/iam/concepts/authorization/key | {} |
| description | string | Description of the service account. | "Managed by terraform" |
| folder_id | string | ID of the folder that the service account will be created in. Defaults to the pr | null |
| roles | set(string) | Roles of the service account in the folder. | [] |
name — Name of the service account.static_access_keys — Properties of the static access keys.service_account_keys — Properties of the service account keys, including
JSON representation of service account key
aid — ID of the service account.