published on Friday, Oct 16, 2026 by stackitcloud
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:
- 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 Dictionary<string, string>Changed - 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 map[string]stringChanged - 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_ map(string)changed - 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 Map<String,String>Changed - 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 {[key: string]: string}Changed - 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_ Mapping[str, str]changed - 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 Map<String>Changed - 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:
- 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 stringHost - Password string
- Port int
- Uri string
- Connection URI.
- Username string
- Credential
Id string - The credential's ID.
- Host string
- Hosts []string
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balanced stringHost - 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_ stringhost - password string
- port number
- 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 StringHost - password String
- port Integer
- uri String
- Connection URI.
- username String
- credential
Id string - The credential's ID.
- host string
- hosts string[]
- id string
- The provider-assigned unique ID for this managed resource.
- load
Balanced stringHost - 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_ strhost - password str
- port int
- uri str
- Connection URI.
- username str
- 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 StringHost - 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) -> ValkeyCredentialfunc 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.
- Credential
Id string - The credential's ID.
- Host string
- Hosts List<string>
- Instance
Id string - ID of the Valkey instance.
- Load
Balanced stringHost - Password string
- Port int
- 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 Dictionary<string, string>Changed - 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 []string
- Instance
Id string - ID of the Valkey instance.
- Load
Balanced stringHost - Password string
- Port int
- 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 map[string]stringChanged - 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_ stringhost - 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_ map(string)changed - 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 StringHost - password String
- port Integer
- 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 Map<String,String>Changed - 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 string[]
- instance
Id string - ID of the Valkey instance.
- load
Balanced stringHost - 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 {[key: string]: string}Changed - 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_ strhost - 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_ Mapping[str, str]changed - 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
- credential
Id String - The credential's ID.
- host String
- hosts List<String>
- instance
Id String - ID of the Valkey instance.
- load
Balanced StringHost - 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 Map<String>Changed - 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
stackitTerraform Provider.
published on Friday, Oct 16, 2026 by stackitcloud