1. Packages
  2. stackit
  3. API Docs
  4. SecretsmanagerUser
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

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

    Example Usage

    resource "stackit_secretsmanager_user" "example" {
      project_id    = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      description   = "Example user"
      write_enabled = false
    }
    
    # Only use the import statement, if you want to import an existing secretsmanager user
    import {
      to = stackit_secretsmanager_user.import-example
      id = "${var.project_id},${var.secret_instance_id},${var.secret_user_id}"
    }
    

    Create SecretsmanagerUser Resource

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

    Constructor syntax

    new SecretsmanagerUser(name: string, args: SecretsmanagerUserArgs, opts?: CustomResourceOptions);
    @overload
    def SecretsmanagerUser(resource_name: str,
                           args: SecretsmanagerUserArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecretsmanagerUser(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           description: Optional[str] = None,
                           instance_id: Optional[str] = None,
                           project_id: Optional[str] = None,
                           write_enabled: Optional[bool] = None)
    func NewSecretsmanagerUser(ctx *Context, name string, args SecretsmanagerUserArgs, opts ...ResourceOption) (*SecretsmanagerUser, error)
    public SecretsmanagerUser(string name, SecretsmanagerUserArgs args, CustomResourceOptions? opts = null)
    public SecretsmanagerUser(String name, SecretsmanagerUserArgs args)
    public SecretsmanagerUser(String name, SecretsmanagerUserArgs args, CustomResourceOptions options)
    
    type: stackit:SecretsmanagerUser
    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 SecretsmanagerUserArgs
    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 SecretsmanagerUserArgs
    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 SecretsmanagerUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretsmanagerUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretsmanagerUserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var secretsmanagerUserResource = new Stackit.SecretsmanagerUser("secretsmanagerUserResource", new()
    {
        Description = "string",
        InstanceId = "string",
        ProjectId = "string",
        WriteEnabled = false,
    });
    
    example, err := stackit.NewSecretsmanagerUser(ctx, "secretsmanagerUserResource", &stackit.SecretsmanagerUserArgs{
    	Description:  pulumi.String("string"),
    	InstanceId:   pulumi.String("string"),
    	ProjectId:    pulumi.String("string"),
    	WriteEnabled: pulumi.Bool(false),
    })
    
    var secretsmanagerUserResource = new SecretsmanagerUser("secretsmanagerUserResource", SecretsmanagerUserArgs.builder()
        .description("string")
        .instanceId("string")
        .projectId("string")
        .writeEnabled(false)
        .build());
    
    secretsmanager_user_resource = stackit.SecretsmanagerUser("secretsmanagerUserResource",
        description="string",
        instance_id="string",
        project_id="string",
        write_enabled=False)
    
    const secretsmanagerUserResource = new stackit.SecretsmanagerUser("secretsmanagerUserResource", {
        description: "string",
        instanceId: "string",
        projectId: "string",
        writeEnabled: false,
    });
    
    type: stackit:SecretsmanagerUser
    properties:
        description: string
        instanceId: string
        projectId: string
        writeEnabled: false
    

    SecretsmanagerUser 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 SecretsmanagerUser resource accepts the following input properties:

    Description string
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    InstanceId string
    ID of the Secrets Manager instance.
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    WriteEnabled bool
    If true, the user has writeaccess to the secrets engine.
    Description string
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    InstanceId string
    ID of the Secrets Manager instance.
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    WriteEnabled bool
    If true, the user has writeaccess to the secrets engine.
    description String
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instanceId String
    ID of the Secrets Manager instance.
    projectId String
    STACKIT Project ID to which the instance is associated.
    writeEnabled Boolean
    If true, the user has writeaccess to the secrets engine.
    description string
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instanceId string
    ID of the Secrets Manager instance.
    projectId string
    STACKIT Project ID to which the instance is associated.
    writeEnabled boolean
    If true, the user has writeaccess to the secrets engine.
    description str
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instance_id str
    ID of the Secrets Manager instance.
    project_id str
    STACKIT Project ID to which the instance is associated.
    write_enabled bool
    If true, the user has writeaccess to the secrets engine.
    description String
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instanceId String
    ID of the Secrets Manager instance.
    projectId String
    STACKIT Project ID to which the instance is associated.
    writeEnabled Boolean
    If true, the user has writeaccess to the secrets engine.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    An auto-generated password.
    UserId string
    The user's ID.
    Username string
    An auto-generated user name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    An auto-generated password.
    UserId string
    The user's ID.
    Username string
    An auto-generated user name.
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    An auto-generated password.
    userId String
    The user's ID.
    username String
    An auto-generated user name.
    id string
    The provider-assigned unique ID for this managed resource.
    password string
    An auto-generated password.
    userId string
    The user's ID.
    username string
    An auto-generated user name.
    id str
    The provider-assigned unique ID for this managed resource.
    password str
    An auto-generated password.
    user_id str
    The user's ID.
    username str
    An auto-generated user name.
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    An auto-generated password.
    userId String
    The user's ID.
    username String
    An auto-generated user name.

    Look up Existing SecretsmanagerUser Resource

    Get an existing SecretsmanagerUser 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?: SecretsmanagerUserState, opts?: CustomResourceOptions): SecretsmanagerUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            instance_id: Optional[str] = None,
            password: Optional[str] = None,
            project_id: Optional[str] = None,
            user_id: Optional[str] = None,
            username: Optional[str] = None,
            write_enabled: Optional[bool] = None) -> SecretsmanagerUser
    func GetSecretsmanagerUser(ctx *Context, name string, id IDInput, state *SecretsmanagerUserState, opts ...ResourceOption) (*SecretsmanagerUser, error)
    public static SecretsmanagerUser Get(string name, Input<string> id, SecretsmanagerUserState? state, CustomResourceOptions? opts = null)
    public static SecretsmanagerUser get(String name, Output<String> id, SecretsmanagerUserState state, CustomResourceOptions options)
    resources:  _:    type: stackit:SecretsmanagerUser    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:
    Description string
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    InstanceId string
    ID of the Secrets Manager instance.
    Password string
    An auto-generated password.
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    UserId string
    The user's ID.
    Username string
    An auto-generated user name.
    WriteEnabled bool
    If true, the user has writeaccess to the secrets engine.
    Description string
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    InstanceId string
    ID of the Secrets Manager instance.
    Password string
    An auto-generated password.
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    UserId string
    The user's ID.
    Username string
    An auto-generated user name.
    WriteEnabled bool
    If true, the user has writeaccess to the secrets engine.
    description String
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instanceId String
    ID of the Secrets Manager instance.
    password String
    An auto-generated password.
    projectId String
    STACKIT Project ID to which the instance is associated.
    userId String
    The user's ID.
    username String
    An auto-generated user name.
    writeEnabled Boolean
    If true, the user has writeaccess to the secrets engine.
    description string
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instanceId string
    ID of the Secrets Manager instance.
    password string
    An auto-generated password.
    projectId string
    STACKIT Project ID to which the instance is associated.
    userId string
    The user's ID.
    username string
    An auto-generated user name.
    writeEnabled boolean
    If true, the user has writeaccess to the secrets engine.
    description str
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instance_id str
    ID of the Secrets Manager instance.
    password str
    An auto-generated password.
    project_id str
    STACKIT Project ID to which the instance is associated.
    user_id str
    The user's ID.
    username str
    An auto-generated user name.
    write_enabled bool
    If true, the user has writeaccess to the secrets engine.
    description String
    A user chosen description to differentiate between multiple users. Can't be changed after creation.
    instanceId String
    ID of the Secrets Manager instance.
    password String
    An auto-generated password.
    projectId String
    STACKIT Project ID to which the instance is associated.
    userId String
    The user's ID.
    username String
    An auto-generated user name.
    writeEnabled Boolean
    If true, the user has writeaccess to the secrets engine.

    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.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.