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

Версия секрета, содержащая одну или несколько пар «ключ-значение»

terraform
resource "mws_secretmanager_secret" "example" {
name = var.secret_name
active = true
}
resource "mws_secretmanager_secret_version" "example" {
name = mws_secretmanager_secret.example.name
active = true
data = {
foo = "bar"
}
}
variable "secret_name" {
type = string
default = "my-secret"
description = "Name of the secret"
}
variable "version_name" {
type = string
default = "my-secret-version"
description = "Name of the secret version"
}
  • name (String) Имя секрета.

NOTE: Write-only arguments are supported in Terraform 1.11 and later.

  • active (Boolean) Версия секрета активна/неактивна
  • data (Map of String, Sensitive, Write-only) Содержимое секрета
  • kind (String)
  • metadata (Attributes) Набор общих для всех пользовательских объектов атрибутов. Может быть расширен атрибутами, специфичными для контейнеров (see below for nested schema)
  • project (String) Путь к проекту.
  • timeouts (Attributes) (see below for nested schema)
  • id (String) The ID of this resource.
  • status (Attributes) (see below for nested schema)
  • version (String) Версия секрета.

Optional:

  • description (String) Описание ресурса
  • display_name (String) Отображаемое имя свойства
  • name (String, Deprecated) Обязательное уникальное, глобально или в пределах проекта, имя. Используется в качестве части составного идентификатора объекта

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) Версия секрета активна/неактивна
  • ready (Attributes) Информация о статусе реконсиляции (see below for nested schema)

Read-Only:

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