1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. KubernetesAuthAttachment
Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack

    Provide a resource to configure kubernetes cluster authentication info.

    NOTE: Only available for cluster version >= 1.20

    Example Usage

    Use TKE default issuer and jwks_uri

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.KubernetesAuthAttachment("example", {
        clusterId: "cls-53c7589g",
        useTkeDefault: true,
        autoCreateDiscoveryAnonymousAuth: true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.KubernetesAuthAttachment("example",
        cluster_id="cls-53c7589g",
        use_tke_default=True,
        auto_create_discovery_anonymous_auth=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewKubernetesAuthAttachment(ctx, "example", &tencentcloud.KubernetesAuthAttachmentArgs{
    			ClusterId:                        pulumi.String("cls-53c7589g"),
    			UseTkeDefault:                    pulumi.Bool(true),
    			AutoCreateDiscoveryAnonymousAuth: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.KubernetesAuthAttachment("example", new()
        {
            ClusterId = "cls-53c7589g",
            UseTkeDefault = true,
            AutoCreateDiscoveryAnonymousAuth = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesAuthAttachment;
    import com.pulumi.tencentcloud.KubernetesAuthAttachmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new KubernetesAuthAttachment("example", KubernetesAuthAttachmentArgs.builder()
                .clusterId("cls-53c7589g")
                .useTkeDefault(true)
                .autoCreateDiscoveryAnonymousAuth(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:KubernetesAuthAttachment
        properties:
          clusterId: cls-53c7589g
          useTkeDefault: true
          autoCreateDiscoveryAnonymousAuth: true
    
    Example coming soon!
    

    Use custom issuer and jwks_uri

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.KubernetesAuthAttachment("example", {
        clusterId: "cls-53c7589g",
        useTkeDefault: false,
        jwksUri: "https://cls-53c7589g.ccs.tencent-cloud.com/openid/v1/jwks",
        issuer: "https://cls-53c7589g.ccs.tencent-cloud.com",
        autoCreateDiscoveryAnonymousAuth: false,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.KubernetesAuthAttachment("example",
        cluster_id="cls-53c7589g",
        use_tke_default=False,
        jwks_uri="https://cls-53c7589g.ccs.tencent-cloud.com/openid/v1/jwks",
        issuer="https://cls-53c7589g.ccs.tencent-cloud.com",
        auto_create_discovery_anonymous_auth=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewKubernetesAuthAttachment(ctx, "example", &tencentcloud.KubernetesAuthAttachmentArgs{
    			ClusterId:                        pulumi.String("cls-53c7589g"),
    			UseTkeDefault:                    pulumi.Bool(false),
    			JwksUri:                          pulumi.String("https://cls-53c7589g.ccs.tencent-cloud.com/openid/v1/jwks"),
    			Issuer:                           pulumi.String("https://cls-53c7589g.ccs.tencent-cloud.com"),
    			AutoCreateDiscoveryAnonymousAuth: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.KubernetesAuthAttachment("example", new()
        {
            ClusterId = "cls-53c7589g",
            UseTkeDefault = false,
            JwksUri = "https://cls-53c7589g.ccs.tencent-cloud.com/openid/v1/jwks",
            Issuer = "https://cls-53c7589g.ccs.tencent-cloud.com",
            AutoCreateDiscoveryAnonymousAuth = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesAuthAttachment;
    import com.pulumi.tencentcloud.KubernetesAuthAttachmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new KubernetesAuthAttachment("example", KubernetesAuthAttachmentArgs.builder()
                .clusterId("cls-53c7589g")
                .useTkeDefault(false)
                .jwksUri("https://cls-53c7589g.ccs.tencent-cloud.com/openid/v1/jwks")
                .issuer("https://cls-53c7589g.ccs.tencent-cloud.com")
                .autoCreateDiscoveryAnonymousAuth(false)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:KubernetesAuthAttachment
        properties:
          clusterId: cls-53c7589g
          useTkeDefault: false
          jwksUri: https://cls-53c7589g.ccs.tencent-cloud.com/openid/v1/jwks
          issuer: https://cls-53c7589g.ccs.tencent-cloud.com
          autoCreateDiscoveryAnonymousAuth: false
    
    Example coming soon!
    

    Use OIDC Config

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.KubernetesAuthAttachment("example", {
        clusterId: "cls-oof3l9ks",
        useTkeDefault: true,
        autoCreateDiscoveryAnonymousAuth: true,
        autoCreateOidcConfig: true,
        autoInstallPodIdentityWebhookAddon: true,
    });
    const oidcConfig = tencentcloud.getCamOidcConfigOutput({
        name: example.clusterId,
    });
    export const identityKey = oidcConfig.apply(oidcConfig => oidcConfig.identityKey);
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.KubernetesAuthAttachment("example",
        cluster_id="cls-oof3l9ks",
        use_tke_default=True,
        auto_create_discovery_anonymous_auth=True,
        auto_create_oidc_config=True,
        auto_install_pod_identity_webhook_addon=True)
    oidc_config = tencentcloud.get_cam_oidc_config_output(name=example.cluster_id)
    pulumi.export("identityKey", oidc_config.identity_key)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := tencentcloud.NewKubernetesAuthAttachment(ctx, "example", &tencentcloud.KubernetesAuthAttachmentArgs{
    			ClusterId:                          pulumi.String("cls-oof3l9ks"),
    			UseTkeDefault:                      pulumi.Bool(true),
    			AutoCreateDiscoveryAnonymousAuth:   pulumi.Bool(true),
    			AutoCreateOidcConfig:               pulumi.Bool(true),
    			AutoInstallPodIdentityWebhookAddon: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		oidcConfig := tencentcloud.GetCamOidcConfigOutput(ctx, tencentcloud.GetCamOidcConfigOutputArgs{
    			Name: example.ClusterId,
    		}, nil)
    		ctx.Export("identityKey", oidcConfig.ApplyT(func(oidcConfig tencentcloud.GetCamOidcConfigResult) (*string, error) {
    			return &oidcConfig.IdentityKey, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.KubernetesAuthAttachment("example", new()
        {
            ClusterId = "cls-oof3l9ks",
            UseTkeDefault = true,
            AutoCreateDiscoveryAnonymousAuth = true,
            AutoCreateOidcConfig = true,
            AutoInstallPodIdentityWebhookAddon = true,
        });
    
        var oidcConfig = Tencentcloud.GetCamOidcConfig.Invoke(new()
        {
            Name = example.ClusterId,
        });
    
        return new Dictionary<string, object?>
        {
            ["identityKey"] = oidcConfig.Apply(getCamOidcConfigResult => getCamOidcConfigResult.IdentityKey),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesAuthAttachment;
    import com.pulumi.tencentcloud.KubernetesAuthAttachmentArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetCamOidcConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new KubernetesAuthAttachment("example", KubernetesAuthAttachmentArgs.builder()
                .clusterId("cls-oof3l9ks")
                .useTkeDefault(true)
                .autoCreateDiscoveryAnonymousAuth(true)
                .autoCreateOidcConfig(true)
                .autoInstallPodIdentityWebhookAddon(true)
                .build());
    
            final var oidcConfig = TencentcloudFunctions.getCamOidcConfig(GetCamOidcConfigArgs.builder()
                .name(example.clusterId())
                .build());
    
            ctx.export("identityKey", oidcConfig.applyValue(_oidcConfig -> _oidcConfig.identityKey()));
        }
    }
    
    resources:
      example:
        type: tencentcloud:KubernetesAuthAttachment
        properties:
          clusterId: cls-oof3l9ks
          useTkeDefault: true
          autoCreateDiscoveryAnonymousAuth: true
          autoCreateOidcConfig: true
          autoInstallPodIdentityWebhookAddon: true
    variables:
      oidcConfig:
        fn::invoke:
          function: tencentcloud:getCamOidcConfig
          arguments:
            name: ${example.clusterId}
    outputs:
      identityKey: ${oidcConfig.identityKey}
    
    Example coming soon!
    

    Create KubernetesAuthAttachment Resource

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

    Constructor syntax

    new KubernetesAuthAttachment(name: string, args: KubernetesAuthAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def KubernetesAuthAttachment(resource_name: str,
                                 args: KubernetesAuthAttachmentArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def KubernetesAuthAttachment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 cluster_id: Optional[str] = None,
                                 auto_create_client_ids: Optional[Sequence[str]] = None,
                                 auto_create_discovery_anonymous_auth: Optional[bool] = None,
                                 auto_create_oidc_config: Optional[bool] = None,
                                 auto_install_pod_identity_webhook_addon: Optional[bool] = None,
                                 issuer: Optional[str] = None,
                                 jwks_uri: Optional[str] = None,
                                 kubernetes_auth_attachment_id: Optional[str] = None,
                                 use_tke_default: Optional[bool] = None)
    func NewKubernetesAuthAttachment(ctx *Context, name string, args KubernetesAuthAttachmentArgs, opts ...ResourceOption) (*KubernetesAuthAttachment, error)
    public KubernetesAuthAttachment(string name, KubernetesAuthAttachmentArgs args, CustomResourceOptions? opts = null)
    public KubernetesAuthAttachment(String name, KubernetesAuthAttachmentArgs args)
    public KubernetesAuthAttachment(String name, KubernetesAuthAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:KubernetesAuthAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_kubernetes_auth_attachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args KubernetesAuthAttachmentArgs
    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 KubernetesAuthAttachmentArgs
    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 KubernetesAuthAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KubernetesAuthAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KubernetesAuthAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ClusterId string
    ID of clusters.
    AutoCreateClientIds List<string>
    Creating ClientId of the identity provider.
    AutoCreateDiscoveryAnonymousAuth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    AutoCreateOidcConfig bool
    Creating an identity provider.
    AutoInstallPodIdentityWebhookAddon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    Issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    JwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    KubernetesAuthAttachmentId string
    ID of the resource.
    UseTkeDefault bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    ClusterId string
    ID of clusters.
    AutoCreateClientIds []string
    Creating ClientId of the identity provider.
    AutoCreateDiscoveryAnonymousAuth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    AutoCreateOidcConfig bool
    Creating an identity provider.
    AutoInstallPodIdentityWebhookAddon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    Issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    JwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    KubernetesAuthAttachmentId string
    ID of the resource.
    UseTkeDefault bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    cluster_id string
    ID of clusters.
    auto_create_client_ids list(string)
    Creating ClientId of the identity provider.
    auto_create_discovery_anonymous_auth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    auto_create_oidc_config bool
    Creating an identity provider.
    auto_install_pod_identity_webhook_addon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwks_uri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetes_auth_attachment_id string
    ID of the resource.
    use_tke_default bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    clusterId String
    ID of clusters.
    autoCreateClientIds List<String>
    Creating ClientId of the identity provider.
    autoCreateDiscoveryAnonymousAuth Boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    autoCreateOidcConfig Boolean
    Creating an identity provider.
    autoInstallPodIdentityWebhookAddon Boolean
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    issuer String
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwksUri String
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetesAuthAttachmentId String
    ID of the resource.
    useTkeDefault Boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    clusterId string
    ID of clusters.
    autoCreateClientIds string[]
    Creating ClientId of the identity provider.
    autoCreateDiscoveryAnonymousAuth boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    autoCreateOidcConfig boolean
    Creating an identity provider.
    autoInstallPodIdentityWebhookAddon boolean
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetesAuthAttachmentId string
    ID of the resource.
    useTkeDefault boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    cluster_id str
    ID of clusters.
    auto_create_client_ids Sequence[str]
    Creating ClientId of the identity provider.
    auto_create_discovery_anonymous_auth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    auto_create_oidc_config bool
    Creating an identity provider.
    auto_install_pod_identity_webhook_addon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    issuer str
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwks_uri str
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetes_auth_attachment_id str
    ID of the resource.
    use_tke_default bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    clusterId String
    ID of clusters.
    autoCreateClientIds List<String>
    Creating ClientId of the identity provider.
    autoCreateDiscoveryAnonymousAuth Boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    autoCreateOidcConfig Boolean
    Creating an identity provider.
    autoInstallPodIdentityWebhookAddon Boolean
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    issuer String
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwksUri String
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetesAuthAttachmentId String
    ID of the resource.
    useTkeDefault Boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    TkeDefaultIssuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    TkeDefaultJwksUri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    Id string
    The provider-assigned unique ID for this managed resource.
    TkeDefaultIssuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    TkeDefaultJwksUri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    id string
    The provider-assigned unique ID for this managed resource.
    tke_default_issuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tke_default_jwks_uri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    id String
    The provider-assigned unique ID for this managed resource.
    tkeDefaultIssuer String
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tkeDefaultJwksUri String
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    id string
    The provider-assigned unique ID for this managed resource.
    tkeDefaultIssuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tkeDefaultJwksUri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    id str
    The provider-assigned unique ID for this managed resource.
    tke_default_issuer str
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tke_default_jwks_uri str
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    id String
    The provider-assigned unique ID for this managed resource.
    tkeDefaultIssuer String
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tkeDefaultJwksUri String
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.

    Look up Existing KubernetesAuthAttachment Resource

    Get an existing KubernetesAuthAttachment 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?: KubernetesAuthAttachmentState, opts?: CustomResourceOptions): KubernetesAuthAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_create_client_ids: Optional[Sequence[str]] = None,
            auto_create_discovery_anonymous_auth: Optional[bool] = None,
            auto_create_oidc_config: Optional[bool] = None,
            auto_install_pod_identity_webhook_addon: Optional[bool] = None,
            cluster_id: Optional[str] = None,
            issuer: Optional[str] = None,
            jwks_uri: Optional[str] = None,
            kubernetes_auth_attachment_id: Optional[str] = None,
            tke_default_issuer: Optional[str] = None,
            tke_default_jwks_uri: Optional[str] = None,
            use_tke_default: Optional[bool] = None) -> KubernetesAuthAttachment
    func GetKubernetesAuthAttachment(ctx *Context, name string, id IDInput, state *KubernetesAuthAttachmentState, opts ...ResourceOption) (*KubernetesAuthAttachment, error)
    public static KubernetesAuthAttachment Get(string name, Input<string> id, KubernetesAuthAttachmentState? state, CustomResourceOptions? opts = null)
    public static KubernetesAuthAttachment get(String name, Output<String> id, KubernetesAuthAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:KubernetesAuthAttachment    get:      id: ${id}
    import {
      to = tencentcloud_kubernetes_auth_attachment.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:
    AutoCreateClientIds List<string>
    Creating ClientId of the identity provider.
    AutoCreateDiscoveryAnonymousAuth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    AutoCreateOidcConfig bool
    Creating an identity provider.
    AutoInstallPodIdentityWebhookAddon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    ClusterId string
    ID of clusters.
    Issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    JwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    KubernetesAuthAttachmentId string
    ID of the resource.
    TkeDefaultIssuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    TkeDefaultJwksUri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    UseTkeDefault bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    AutoCreateClientIds []string
    Creating ClientId of the identity provider.
    AutoCreateDiscoveryAnonymousAuth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    AutoCreateOidcConfig bool
    Creating an identity provider.
    AutoInstallPodIdentityWebhookAddon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    ClusterId string
    ID of clusters.
    Issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    JwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    KubernetesAuthAttachmentId string
    ID of the resource.
    TkeDefaultIssuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    TkeDefaultJwksUri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    UseTkeDefault bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    auto_create_client_ids list(string)
    Creating ClientId of the identity provider.
    auto_create_discovery_anonymous_auth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    auto_create_oidc_config bool
    Creating an identity provider.
    auto_install_pod_identity_webhook_addon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    cluster_id string
    ID of clusters.
    issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwks_uri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetes_auth_attachment_id string
    ID of the resource.
    tke_default_issuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tke_default_jwks_uri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    use_tke_default bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    autoCreateClientIds List<String>
    Creating ClientId of the identity provider.
    autoCreateDiscoveryAnonymousAuth Boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    autoCreateOidcConfig Boolean
    Creating an identity provider.
    autoInstallPodIdentityWebhookAddon Boolean
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    clusterId String
    ID of clusters.
    issuer String
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwksUri String
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetesAuthAttachmentId String
    ID of the resource.
    tkeDefaultIssuer String
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tkeDefaultJwksUri String
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    useTkeDefault Boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    autoCreateClientIds string[]
    Creating ClientId of the identity provider.
    autoCreateDiscoveryAnonymousAuth boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    autoCreateOidcConfig boolean
    Creating an identity provider.
    autoInstallPodIdentityWebhookAddon boolean
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    clusterId string
    ID of clusters.
    issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetesAuthAttachmentId string
    ID of the resource.
    tkeDefaultIssuer string
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tkeDefaultJwksUri string
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    useTkeDefault boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    auto_create_client_ids Sequence[str]
    Creating ClientId of the identity provider.
    auto_create_discovery_anonymous_auth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    auto_create_oidc_config bool
    Creating an identity provider.
    auto_install_pod_identity_webhook_addon bool
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    cluster_id str
    ID of clusters.
    issuer str
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwks_uri str
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetes_auth_attachment_id str
    ID of the resource.
    tke_default_issuer str
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tke_default_jwks_uri str
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    use_tke_default bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.
    autoCreateClientIds List<String>
    Creating ClientId of the identity provider.
    autoCreateDiscoveryAnonymousAuth Boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access /.well-known/openid-configuration and /openid/v1/jwks.
    autoCreateOidcConfig Boolean
    Creating an identity provider.
    autoInstallPodIdentityWebhookAddon Boolean
    Creating the PodIdentityWebhook component. if auto_create_oidc_config is true, this field must set true.
    clusterId String
    ID of clusters.
    issuer String
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field.
    jwksUri String
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field.
    kubernetesAuthAttachmentId String
    ID of the resource.
    tkeDefaultIssuer String
    The default issuer of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    tkeDefaultJwksUri String
    The default jwks_uri of tke. If use_tke_default is set to true, this parameter will be set to the default value.
    useTkeDefault Boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri.

    Import

    TKE cluster authentication can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/kubernetesAuthAttachment:KubernetesAuthAttachment example cls-fp5o961e
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.83.31
    published on Friday, Sep 11, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial