Перейти к содержимому

Авторизованный ключ (authorized key) — это ключ с алгоритмом шифрования ES256, применяемый для аутентификации во всех сервисах MWS (исключая Object Storage, Artifact Registry и GPT)

terraform
resource "mws_iam_service_account" "example" {
service_account = var.service_account_name
}
resource "mws_iam_authorized_key" "example" {
authorized_key = var.authorized_key_name
service_account = mws_iam_service_account.example.service_account
key_algorithm = "ES256"
active = true
expiration_time = "2027-01-01T00:00:00Z"
metadata = {
display_name = "Example Authorized Key"
}
}
variable "service_account_name" {
type = string
default = "my-test-service-account"
description = "Service account name"
}
variable "authorized_key_name" {
type = string
default = "my-test-auth-key"
description = "Authorized key name"
}
  • authorized_key (String)
  • key_algorithm (String) Алгоритм шифрования
  • service_account (String)
  • active (Boolean) Флаг активности ключа
  • expiration_time (String) Время истечения срока действия ключа

Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00

  • kind (String)
  • metadata (Attributes) (see below for nested schema)
  • project (String) Путь к проекту.
  • public_key (String) Открытый ключ. Если данный параметр в запросе отсутствует, то сервис сам сгенерирует ключ для указанного алгоритма и вернет приватный ключ в поле статуса в ответе
  • timeouts (Attributes) (see below for nested schema)

Optional:

  • description (String) Описание ресурса
  • display_name (String) Отображаемое имя. Необязательное поле, можно свободно задавать и изменять для удобства организации ресурсов

Read-Only:

  • create_time (String) Дата создания объекта

Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00

  • delete_time (String) Время запроса на удаление ресурса (не фактическое время удаления)

Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00

  • id (String) ID свойства
  • purge_time (String) Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00
  • usages (Attributes List) Связи с другими ресурсами. В зависимости от типа связи операции над ресурсом могут быть ограничены (see below for nested schema)

Read-Only:

  • name (String) Имя связи. Требуется для модификации коллекции
  • resource (String) Ссылка на ресурс
  • usage_type (String) Тип связи. Помимо стандартных “own” и “use” могут быть добавлены специализированные типы для конкретных сервисов

Optional:

  • create (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).
  • delete (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
  • update (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).

Read-Only:

  • active (Boolean) Флаг активности ключа
  • last_auth_time (String) Время последней аутентификации

Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00

  • private_key (String, Sensitive) Закрытый ключ, сгенерированный на стороне сервиса
  • private_key_file (String, Sensitive) Файл с закрытым ключом, сгенерированным на стороне сервиса, в формате base64
  • public_key (String) Открытый ключ, сгенерированный на стороне сервиса
  • ready (Attributes) Информация о статусе реконсиляции (see below for nested schema)

Read-Only:

  • message (String) Описание статуса
  • state (String) Состояние ресурса