terraform-provider-stackitp.../docs/resources/secretsmanager_instance.md
Alexander Dahmen 721e10a02f
chore(examples): Add import examples for all resources (#939)
* chore(examples): Add import examples for all resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Add guide: How to import resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-08-08 14:03:27 +02:00

1.4 KiB

page_title subcategory description
stackit_secretsmanager_instance Resource - stackit 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

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.