1. Packages
  2. stackit
  3. API Docs
  4. EdgecloudKubeconfig
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

    Edge Cloud is in private Beta and not generally available. You can contact support if you are interested in trying it out.

    This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

    Example Usage

    # the instance resource only exists here to illustrate the usage of it's attribute
    resource "stackit_edgecloud_instance" "this" {
      project_id   = local.project_id
      display_name = "example"
      plan_id      = var.plan_id
      description  = "some_description"
    }
    
    resource "stackit_edgecloud_kubeconfig" "by_name" {
      project_id    = var.project_id
      instance_name = stackit_edgecloud_instance.this.display_name
      expiration    = 3600 # seconds
    }
    
    resource "stackit_edgecloud_kubeconfig" "by_id" {
      project_id  = var.project_id
      instance_id = stackit_edgecloud_instance.this.instance_id
      expiration  = 3600 # seconds
    }
    

    Create EdgecloudKubeconfig Resource

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

    Constructor syntax

    new EdgecloudKubeconfig(name: string, args: EdgecloudKubeconfigArgs, opts?: CustomResourceOptions);
    @overload
    def EdgecloudKubeconfig(resource_name: str,
                            args: EdgecloudKubeconfigArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def EdgecloudKubeconfig(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            project_id: Optional[str] = None,
                            expiration: Optional[int] = None,
                            instance_id: Optional[str] = None,
                            instance_name: Optional[str] = None,
                            recreate_before: Optional[int] = None,
                            region: Optional[str] = None)
    func NewEdgecloudKubeconfig(ctx *Context, name string, args EdgecloudKubeconfigArgs, opts ...ResourceOption) (*EdgecloudKubeconfig, error)
    public EdgecloudKubeconfig(string name, EdgecloudKubeconfigArgs args, CustomResourceOptions? opts = null)
    public EdgecloudKubeconfig(String name, EdgecloudKubeconfigArgs args)
    public EdgecloudKubeconfig(String name, EdgecloudKubeconfigArgs args, CustomResourceOptions options)
    
    type: stackit:EdgecloudKubeconfig
    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 EdgecloudKubeconfigArgs
    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 EdgecloudKubeconfigArgs
    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 EdgecloudKubeconfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EdgecloudKubeconfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EdgecloudKubeconfigArgs
    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 edgecloudKubeconfigResource = new Stackit.EdgecloudKubeconfig("edgecloudKubeconfigResource", new()
    {
        ProjectId = "string",
        Expiration = 0,
        InstanceId = "string",
        InstanceName = "string",
        RecreateBefore = 0,
        Region = "string",
    });
    
    example, err := stackit.NewEdgecloudKubeconfig(ctx, "edgecloudKubeconfigResource", &stackit.EdgecloudKubeconfigArgs{
    	ProjectId:      pulumi.String("string"),
    	Expiration:     pulumi.Int(0),
    	InstanceId:     pulumi.String("string"),
    	InstanceName:   pulumi.String("string"),
    	RecreateBefore: pulumi.Int(0),
    	Region:         pulumi.String("string"),
    })
    
    var edgecloudKubeconfigResource = new EdgecloudKubeconfig("edgecloudKubeconfigResource", EdgecloudKubeconfigArgs.builder()
        .projectId("string")
        .expiration(0)
        .instanceId("string")
        .instanceName("string")
        .recreateBefore(0)
        .region("string")
        .build());
    
    edgecloud_kubeconfig_resource = stackit.EdgecloudKubeconfig("edgecloudKubeconfigResource",
        project_id="string",
        expiration=0,
        instance_id="string",
        instance_name="string",
        recreate_before=0,
        region="string")
    
    const edgecloudKubeconfigResource = new stackit.EdgecloudKubeconfig("edgecloudKubeconfigResource", {
        projectId: "string",
        expiration: 0,
        instanceId: "string",
        instanceName: "string",
        recreateBefore: 0,
        region: "string",
    });
    
    type: stackit:EdgecloudKubeconfig
    properties:
        expiration: 0
        instanceId: string
        instanceName: string
        projectId: string
        recreateBefore: 0
        region: string
    

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

    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    Expiration int
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    Region string
    The resource region. If not defined, the provider region is used.
    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    Expiration int
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    Region string
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration Integer
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    recreateBefore Integer
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region String
    The resource region. If not defined, the provider region is used.
    projectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration number
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instanceId string
    ID of the Edge Cloud instance.
    instanceName string
    Name of the Edge Cloud instance.
    recreateBefore number
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region string
    The resource region. If not defined, the provider region is used.
    project_id str
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration int
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instance_id str
    ID of the Edge Cloud instance.
    instance_name str
    Name of the Edge Cloud instance.
    recreate_before int
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region str
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    expiration Number
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    recreateBefore Number
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region String
    The resource region. If not defined, the provider region is used.

    Outputs

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

    CreationTime string
    Date-time when the kubeconfig was created
    ExpiresAt string
    Timestamp when the kubeconfig expires
    Id string
    The provider-assigned unique ID for this managed resource.
    Kubeconfig string
    Raw kubeconfig.
    KubeconfigId string
    CreationTime string
    Date-time when the kubeconfig was created
    ExpiresAt string
    Timestamp when the kubeconfig expires
    Id string
    The provider-assigned unique ID for this managed resource.
    Kubeconfig string
    Raw kubeconfig.
    KubeconfigId string
    creationTime String
    Date-time when the kubeconfig was created
    expiresAt String
    Timestamp when the kubeconfig expires
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfig String
    Raw kubeconfig.
    kubeconfigId String
    creationTime string
    Date-time when the kubeconfig was created
    expiresAt string
    Timestamp when the kubeconfig expires
    id string
    The provider-assigned unique ID for this managed resource.
    kubeconfig string
    Raw kubeconfig.
    kubeconfigId string
    creation_time str
    Date-time when the kubeconfig was created
    expires_at str
    Timestamp when the kubeconfig expires
    id str
    The provider-assigned unique ID for this managed resource.
    kubeconfig str
    Raw kubeconfig.
    kubeconfig_id str
    creationTime String
    Date-time when the kubeconfig was created
    expiresAt String
    Timestamp when the kubeconfig expires
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfig String
    Raw kubeconfig.
    kubeconfigId String

    Look up Existing EdgecloudKubeconfig Resource

    Get an existing EdgecloudKubeconfig 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?: EdgecloudKubeconfigState, opts?: CustomResourceOptions): EdgecloudKubeconfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_time: Optional[str] = None,
            expiration: Optional[int] = None,
            expires_at: Optional[str] = None,
            instance_id: Optional[str] = None,
            instance_name: Optional[str] = None,
            kubeconfig: Optional[str] = None,
            kubeconfig_id: Optional[str] = None,
            project_id: Optional[str] = None,
            recreate_before: Optional[int] = None,
            region: Optional[str] = None) -> EdgecloudKubeconfig
    func GetEdgecloudKubeconfig(ctx *Context, name string, id IDInput, state *EdgecloudKubeconfigState, opts ...ResourceOption) (*EdgecloudKubeconfig, error)
    public static EdgecloudKubeconfig Get(string name, Input<string> id, EdgecloudKubeconfigState? state, CustomResourceOptions? opts = null)
    public static EdgecloudKubeconfig get(String name, Output<String> id, EdgecloudKubeconfigState state, CustomResourceOptions options)
    resources:  _:    type: stackit:EdgecloudKubeconfig    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:
    CreationTime string
    Date-time when the kubeconfig was created
    Expiration int
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    ExpiresAt string
    Timestamp when the kubeconfig expires
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    Kubeconfig string
    Raw kubeconfig.
    KubeconfigId string
    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    Region string
    The resource region. If not defined, the provider region is used.
    CreationTime string
    Date-time when the kubeconfig was created
    Expiration int
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    ExpiresAt string
    Timestamp when the kubeconfig expires
    InstanceId string
    ID of the Edge Cloud instance.
    InstanceName string
    Name of the Edge Cloud instance.
    Kubeconfig string
    Raw kubeconfig.
    KubeconfigId string
    ProjectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    RecreateBefore int
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    Region string
    The resource region. If not defined, the provider region is used.
    creationTime String
    Date-time when the kubeconfig was created
    expiration Integer
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expiresAt String
    Timestamp when the kubeconfig expires
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    kubeconfig String
    Raw kubeconfig.
    kubeconfigId String
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreateBefore Integer
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region String
    The resource region. If not defined, the provider region is used.
    creationTime string
    Date-time when the kubeconfig was created
    expiration number
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expiresAt string
    Timestamp when the kubeconfig expires
    instanceId string
    ID of the Edge Cloud instance.
    instanceName string
    Name of the Edge Cloud instance.
    kubeconfig string
    Raw kubeconfig.
    kubeconfigId string
    projectId string
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreateBefore number
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region string
    The resource region. If not defined, the provider region is used.
    creation_time str
    Date-time when the kubeconfig was created
    expiration int
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expires_at str
    Timestamp when the kubeconfig expires
    instance_id str
    ID of the Edge Cloud instance.
    instance_name str
    Name of the Edge Cloud instance.
    kubeconfig str
    Raw kubeconfig.
    kubeconfig_id str
    project_id str
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreate_before int
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region str
    The resource region. If not defined, the provider region is used.
    creationTime String
    Date-time when the kubeconfig was created
    expiration Number
    Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
    expiresAt String
    Timestamp when the kubeconfig expires
    instanceId String
    ID of the Edge Cloud instance.
    instanceName String
    Name of the Edge Cloud instance.
    kubeconfig String
    Raw kubeconfig.
    kubeconfigId String
    projectId String
    STACKIT project ID to which the Edge Cloud instance is associated.
    recreateBefore Number
    Number of seconds before expiration to trigger recreation of the kubeconfig at.
    region String
    The resource region. If not defined, the provider region is used.

    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.