1. Packages
  2. stackit
  3. API Docs
  4. SecretsmanagerInstance
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud

    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}"
    }
    

    Create SecretsmanagerInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecretsmanagerInstance(name: string, args: SecretsmanagerInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def SecretsmanagerInstance(resource_name: str,
                               args: SecretsmanagerInstanceArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecretsmanagerInstance(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               project_id: Optional[str] = None,
                               acls: Optional[Sequence[str]] = None,
                               kms_key: Optional[SecretsmanagerInstanceKmsKeyArgs] = None,
                               name: Optional[str] = None)
    func NewSecretsmanagerInstance(ctx *Context, name string, args SecretsmanagerInstanceArgs, opts ...ResourceOption) (*SecretsmanagerInstance, error)
    public SecretsmanagerInstance(string name, SecretsmanagerInstanceArgs args, CustomResourceOptions? opts = null)
    public SecretsmanagerInstance(String name, SecretsmanagerInstanceArgs args)
    public SecretsmanagerInstance(String name, SecretsmanagerInstanceArgs args, CustomResourceOptions options)
    
    type: stackit:SecretsmanagerInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecretsmanagerInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecretsmanagerInstanceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecretsmanagerInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretsmanagerInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretsmanagerInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SecretsmanagerInstance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecretsmanagerInstance resource accepts the following input properties:

    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls List<string>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    KmsKey SecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    Name string
    Instance name.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls []string
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    KmsKey SecretsmanagerInstanceKmsKeyArgs
    The STACKIT-KMS key for secret encryption and decryption.
    Name string
    Instance name.
    projectId String
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    kmsKey SecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    name String
    Instance name.
    projectId string
    STACKIT project ID to which the instance is associated.
    acls string[]
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    kmsKey SecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    name string
    Instance name.
    project_id str
    STACKIT project ID to which the instance is associated.
    acls Sequence[str]
    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 SecretsmanagerInstanceKmsKeyArgs
    The STACKIT-KMS key for secret encryption and decryption.
    name str
    Instance name.
    projectId String
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    kmsKey Property Map
    The STACKIT-KMS key for secret encryption and decryption.
    name String
    Instance name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecretsmanagerInstance resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    ID of the Secrets Manager instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    ID of the Secrets Manager instance.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    ID of the Secrets Manager instance.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    ID of the Secrets Manager instance.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    ID of the Secrets Manager instance.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    ID of the Secrets Manager instance.

    Look up Existing SecretsmanagerInstance Resource

    Get an existing SecretsmanagerInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecretsmanagerInstanceState, opts?: CustomResourceOptions): SecretsmanagerInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acls: Optional[Sequence[str]] = None,
            instance_id: Optional[str] = None,
            kms_key: Optional[SecretsmanagerInstanceKmsKeyArgs] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None) -> SecretsmanagerInstance
    func GetSecretsmanagerInstance(ctx *Context, name string, id IDInput, state *SecretsmanagerInstanceState, opts ...ResourceOption) (*SecretsmanagerInstance, error)
    public static SecretsmanagerInstance Get(string name, Input<string> id, SecretsmanagerInstanceState? state, CustomResourceOptions? opts = null)
    public static SecretsmanagerInstance get(String name, Output<String> id, SecretsmanagerInstanceState state, CustomResourceOptions options)
    resources:  _:    type: stackit:SecretsmanagerInstance    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Acls List<string>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    InstanceId string
    ID of the Secrets Manager instance.
    KmsKey SecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    Name string
    Instance name.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls []string
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    InstanceId string
    ID of the Secrets Manager instance.
    KmsKey SecretsmanagerInstanceKmsKeyArgs
    The STACKIT-KMS key for secret encryption and decryption.
    Name string
    Instance name.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    instanceId String
    ID of the Secrets Manager instance.
    kmsKey SecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    name String
    Instance name.
    projectId String
    STACKIT project ID to which the instance is associated.
    acls string[]
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    instanceId string
    ID of the Secrets Manager instance.
    kmsKey SecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    name string
    Instance name.
    projectId string
    STACKIT project ID to which the instance is associated.
    acls Sequence[str]
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    instance_id str
    ID of the Secrets Manager instance.
    kms_key SecretsmanagerInstanceKmsKeyArgs
    The STACKIT-KMS key for secret encryption and decryption.
    name str
    Instance name.
    project_id str
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    instanceId String
    ID of the Secrets Manager instance.
    kmsKey Property Map
    The STACKIT-KMS key for secret encryption and decryption.
    name String
    Instance name.
    projectId String
    STACKIT project ID to which the instance is associated.

    Supporting Types

    SecretsmanagerInstanceKmsKey, SecretsmanagerInstanceKmsKeyArgs

    KeyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    KeyRingId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    KeyVersion int
    Version of the key within the STACKIT-KMS to use for the encryption.
    ServiceAccountEmail string
    Service-Account linked to the Key within the STACKIT-KMS.
    KeyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    KeyRingId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    KeyVersion int
    Version of the key within the STACKIT-KMS to use for the encryption.
    ServiceAccountEmail string
    Service-Account linked to the Key within the STACKIT-KMS.
    keyId String
    UUID of the key within the STACKIT-KMS to use for the encryption.
    keyRingId String
    UUID of the keyring where the key is located within the STACKTI-KMS.
    keyVersion Integer
    Version of the key within the STACKIT-KMS to use for the encryption.
    serviceAccountEmail String
    Service-Account linked to the Key within the STACKIT-KMS.
    keyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    keyRingId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    keyVersion number
    Version of the key within the STACKIT-KMS to use for the encryption.
    serviceAccountEmail string
    Service-Account linked to the Key within the STACKIT-KMS.
    key_id str
    UUID of the key within the STACKIT-KMS to use for the encryption.
    key_ring_id str
    UUID of the keyring where the key is located within the STACKTI-KMS.
    key_version int
    Version of the key within the STACKIT-KMS to use for the encryption.
    service_account_email str
    Service-Account linked to the Key within the STACKIT-KMS.
    keyId String
    UUID of the key within the STACKIT-KMS to use for the encryption.
    keyRingId String
    UUID of the keyring where the key is located within the STACKTI-KMS.
    keyVersion Number
    Version of the key within the STACKIT-KMS to use for the encryption.
    serviceAccountEmail String
    Service-Account linked to the Key within the STACKIT-KMS.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.5
    published on Tuesday, Mar 31, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.