Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.92 KB

File metadata and controls

55 lines (40 loc) · 1.92 KB
page_title stackit_secretsmanager_instance Resource - stackit
subcategory
description Secrets Manager instance resource schema. Must have a region specified in the provider configuration.

stackit_secretsmanager_instance (Resource)

Secrets Manager instance resource schema. Must have a region specified in the provider configuration.

Example Usage

resource "stackit_secretsmanager_instance" "example" {
  project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name       = "example-instance"
  acls       = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
}

# Only use the import statement, if you want to import an existing secretsmanager instance
import {
  to = stackit_secretsmanager_instance.import-example
  id = "${var.project_id},${var.secret_instance_id}"
}

Schema

Required

  • name (String) Instance name.
  • project_id (String) STACKIT project ID to which the instance is associated.

Optional

  • acls (Set of String) The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
  • kms_key (Attributes) The STACKIT-KMS key for secret encryption and decryption. (see below for nested schema)

Read-Only

  • id (String) Terraform's internal resource ID. It is structured as "project_id,instance_id".
  • instance_id (String) ID of the Secrets Manager instance.

Nested Schema for kms_key

Required:

  • key_id (String) UUID of the key within the STACKIT-KMS to use for the encryption.
  • key_ring_id (String) UUID of the keyring where the key is located within the STACKTI-KMS.
  • key_version (Number) Version of the key within the STACKIT-KMS to use for the encryption.
  • service_account_email (String) Service-Account linked to the Key within the STACKIT-KMS.