1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. ValkeyCredential
Viewing docs for stackit v0.0.8
published on Friday, Oct 16, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.8
published on Friday, Oct 16, 2026 by stackitcloud

    Key Value Store(valkey) credential resource schema. Must have a region specified in the provider configuration.

    Example Usage

    resource "stackit_valkey_credential" "example" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    
    resource "time_rotating" "rotate" {
      rotation_days = 80
    }
    
    resource "stackit_valkey_credential" "example_rotate" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    
      rotate_when_changed = {
        rotation = time_rotating.rotate.id
      }
    }
    

    Create ValkeyCredential Resource

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

    Constructor syntax

    new ValkeyCredential(name: string, args: ValkeyCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def ValkeyCredential(resource_name: str,
                         args: ValkeyCredentialArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ValkeyCredential(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         instance_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         region: Optional[str] = None,
                         rotate_when_changed: Optional[Mapping[str, str]] = None)
    func NewValkeyCredential(ctx *Context, name string, args ValkeyCredentialArgs, opts ...ResourceOption) (*ValkeyCredential, error)
    public ValkeyCredential(string name, ValkeyCredentialArgs args, CustomResourceOptions? opts = null)
    public ValkeyCredential(String name, ValkeyCredentialArgs args)
    public ValkeyCredential(String name, ValkeyCredentialArgs args, CustomResourceOptions options)
    
    type: stackit:ValkeyCredential
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "stackit_valkey_credential" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ValkeyCredentialArgs
    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 ValkeyCredentialArgs
    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 ValkeyCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ValkeyCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ValkeyCredentialArgs
    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 valkeyCredentialResource = new Stackit.ValkeyCredential("valkeyCredentialResource", new()
    {
        InstanceId = "string",
        ProjectId = "string",
        Region = "string",
        RotateWhenChanged = 
        {
            { "string", "string" },
        },
    });
    
    example, err := stackit.NewValkeyCredential(ctx, "valkeyCredentialResource", &stackit.ValkeyCredentialArgs{
    	InstanceId: pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    	Region:     pulumi.String("string"),
    	RotateWhenChanged: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "stackit_valkey_credential" "valkeyCredentialResource" {
      lifecycle {
        create_before_destroy = true
      }
      instance_id = "string"
      project_id  = "string"
      region      = "string"
      rotate_when_changed = {
        "string" = "string"
      }
    }
    
    var valkeyCredentialResource = new ValkeyCredential("valkeyCredentialResource", ValkeyCredentialArgs.builder()
        .instanceId("string")
        .projectId("string")
        .region("string")
        .rotateWhenChanged(Map.of("string", "string"))
        .build());
    
    valkey_credential_resource = stackit.ValkeyCredential("valkeyCredentialResource",
        instance_id="string",
        project_id="string",
        region="string",
        rotate_when_changed={
            "string": "string",
        })
    
    const valkeyCredentialResource = new stackit.ValkeyCredential("valkeyCredentialResource", {
        instanceId: "string",
        projectId: "string",
        region: "string",
        rotateWhenChanged: {
            string: "string",
        },
    });
    
    type: stackit:ValkeyCredential
    properties:
        instanceId: string
        projectId: string
        region: string
        rotateWhenChanged:
            string: string
    

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

    InstanceId string
    ID of the Valkey instance.
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    RotateWhenChanged Dictionary<string, string>
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    InstanceId string
    ID of the Valkey instance.
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    RotateWhenChanged map[string]string
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    instance_id string
    ID of the Valkey instance.
    project_id string
    STACKIT Project ID to which the instance is associated.
    region string
    The resource region. If not defined, the provider region is used.
    rotate_when_changed map(string)
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    instanceId String
    ID of the Valkey instance.
    projectId String
    STACKIT Project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    rotateWhenChanged Map<String,String>
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    instanceId string
    ID of the Valkey instance.
    projectId string
    STACKIT Project ID to which the instance is associated.
    region string
    The resource region. If not defined, the provider region is used.
    rotateWhenChanged {[key: string]: string}
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    instance_id str
    ID of the Valkey instance.
    project_id str
    STACKIT Project ID to which the instance is associated.
    region str
    The resource region. If not defined, the provider region is used.
    rotate_when_changed Mapping[str, str]
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    instanceId String
    ID of the Valkey instance.
    projectId String
    STACKIT Project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    rotateWhenChanged Map<String>
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.

    Outputs

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

    CredentialId string
    The credential's ID.
    Host string
    Hosts List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    LoadBalancedHost string
    Password string
    Port int
    Uri string
    Connection URI.
    Username string
    CredentialId string
    The credential's ID.
    Host string
    Hosts []string
    Id string
    The provider-assigned unique ID for this managed resource.
    LoadBalancedHost string
    Password string
    Port int
    Uri string
    Connection URI.
    Username string
    credential_id string
    The credential's ID.
    host string
    hosts list(string)
    id string
    The provider-assigned unique ID for this managed resource.
    load_balanced_host string
    password string
    port number
    uri string
    Connection URI.
    username string
    credentialId String
    The credential's ID.
    host String
    hosts List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    loadBalancedHost String
    password String
    port Integer
    uri String
    Connection URI.
    username String
    credentialId string
    The credential's ID.
    host string
    hosts string[]
    id string
    The provider-assigned unique ID for this managed resource.
    loadBalancedHost string
    password string
    port number
    uri string
    Connection URI.
    username string
    credential_id str
    The credential's ID.
    host str
    hosts Sequence[str]
    id str
    The provider-assigned unique ID for this managed resource.
    load_balanced_host str
    password str
    port int
    uri str
    Connection URI.
    username str
    credentialId String
    The credential's ID.
    host String
    hosts List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    loadBalancedHost String
    password String
    port Number
    uri String
    Connection URI.
    username String

    Look up Existing ValkeyCredential Resource

    Get an existing ValkeyCredential 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?: ValkeyCredentialState, opts?: CustomResourceOptions): ValkeyCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            credential_id: Optional[str] = None,
            host: Optional[str] = None,
            hosts: Optional[Sequence[str]] = None,
            instance_id: Optional[str] = None,
            load_balanced_host: Optional[str] = None,
            password: Optional[str] = None,
            port: Optional[int] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            rotate_when_changed: Optional[Mapping[str, str]] = None,
            uri: Optional[str] = None,
            username: Optional[str] = None) -> ValkeyCredential
    func GetValkeyCredential(ctx *Context, name string, id IDInput, state *ValkeyCredentialState, opts ...ResourceOption) (*ValkeyCredential, error)
    public static ValkeyCredential Get(string name, Input<string> id, ValkeyCredentialState? state, CustomResourceOptions? opts = null)
    public static ValkeyCredential get(String name, Output<String> id, ValkeyCredentialState state, CustomResourceOptions options)
    resources:  _:    type: stackit:ValkeyCredential    get:      id: ${id}
    import {
      to = stackit_valkey_credential.example
      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:
    CredentialId string
    The credential's ID.
    Host string
    Hosts List<string>
    InstanceId string
    ID of the Valkey instance.
    LoadBalancedHost string
    Password string
    Port int
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    RotateWhenChanged Dictionary<string, string>
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    Uri string
    Connection URI.
    Username string
    CredentialId string
    The credential's ID.
    Host string
    Hosts []string
    InstanceId string
    ID of the Valkey instance.
    LoadBalancedHost string
    Password string
    Port int
    ProjectId string
    STACKIT Project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    RotateWhenChanged map[string]string
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    Uri string
    Connection URI.
    Username string
    credential_id string
    The credential's ID.
    host string
    hosts list(string)
    instance_id string
    ID of the Valkey instance.
    load_balanced_host string
    password string
    port number
    project_id string
    STACKIT Project ID to which the instance is associated.
    region string
    The resource region. If not defined, the provider region is used.
    rotate_when_changed map(string)
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    uri string
    Connection URI.
    username string
    credentialId String
    The credential's ID.
    host String
    hosts List<String>
    instanceId String
    ID of the Valkey instance.
    loadBalancedHost String
    password String
    port Integer
    projectId String
    STACKIT Project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    rotateWhenChanged Map<String,String>
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    uri String
    Connection URI.
    username String
    credentialId string
    The credential's ID.
    host string
    hosts string[]
    instanceId string
    ID of the Valkey instance.
    loadBalancedHost string
    password string
    port number
    projectId string
    STACKIT Project ID to which the instance is associated.
    region string
    The resource region. If not defined, the provider region is used.
    rotateWhenChanged {[key: string]: string}
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    uri string
    Connection URI.
    username string
    credential_id str
    The credential's ID.
    host str
    hosts Sequence[str]
    instance_id str
    ID of the Valkey instance.
    load_balanced_host str
    password str
    port int
    project_id str
    STACKIT Project ID to which the instance is associated.
    region str
    The resource region. If not defined, the provider region is used.
    rotate_when_changed Mapping[str, str]
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    uri str
    Connection URI.
    username str
    credentialId String
    The credential's ID.
    host String
    hosts List<String>
    instanceId String
    ID of the Valkey instance.
    loadBalancedHost String
    password String
    port Number
    projectId String
    STACKIT Project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    rotateWhenChanged Map<String>
    A map of arbitrary key/value pairs that will force recreation of the resource when they change, enabling resource rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
    uri String
    Connection URI.
    username String

    Import

    In Terraform v1.5.0 and later, the + "" + import + “" + block can be used with the + "” + id + “" + attribute, for example:

    # Only use the import statement, if you want to import an existing valkey credential
    import {
      to = stackit_valkey_credential.import-example
      id = "${var.project_id},${var.region},${var.valkey_instance_id},${var.valkey_credential_id}"
    }
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.8
    published on Friday, Oct 16, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial