» yandex_iam_service_account_static_access_key

Allows management of a Yandex.Cloud IAM service account static access keys. Generated pair of keys are used to access Yandex Object Storage on behalf of service account.

Before use keys do not forget to assign a proper role to a service account.

» Example Usage

This snippet creates a service account static access key.

resource "yandex_iam_service_account_static_access_key" "sa-static-key" {
  service_account_id = "some_sa_id"
  description        = "static access key for object storage"
}

» Argument Reference

The following arguments are supported:

  • service_account_id - (Required) ID of the service account which is used to get a static key.

  • description - (Optional) The description of the service account static key.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • access_key - ID of the static access key.

  • secret_key - Private part of generated static access key.

  • created_at - Creation timestamp of the static access key.