1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. eks
  6. PodIdentityAssociation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    An object representing an Amazon EKS PodIdentityAssociation.

    Create PodIdentityAssociation Resource

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

    Constructor syntax

    new PodIdentityAssociation(name: string, args: PodIdentityAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def PodIdentityAssociation(resource_name: str,
                               args: PodIdentityAssociationArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def PodIdentityAssociation(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               cluster_name: Optional[str] = None,
                               namespace: Optional[str] = None,
                               role_arn: Optional[str] = None,
                               service_account: Optional[str] = None,
                               disable_session_tags: Optional[bool] = None,
                               policy: Optional[str] = None,
                               tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                               target_role_arn: Optional[str] = None,
                               workload_identity_config: Optional[PodIdentityAssociationWorkloadIdentityConfigArgs] = None)
    func NewPodIdentityAssociation(ctx *Context, name string, args PodIdentityAssociationArgs, opts ...ResourceOption) (*PodIdentityAssociation, error)
    public PodIdentityAssociation(string name, PodIdentityAssociationArgs args, CustomResourceOptions? opts = null)
    public PodIdentityAssociation(String name, PodIdentityAssociationArgs args)
    public PodIdentityAssociation(String name, PodIdentityAssociationArgs args, CustomResourceOptions options)
    
    type: aws-native:eks:PodIdentityAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_eks_pod_identity_association" "name" {
        # resource properties
    }

    Parameters

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

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

    ClusterName string
    The cluster that the pod identity association is created for.
    Namespace string
    The Kubernetes namespace that the pod identity association is created for.
    RoleArn string
    The IAM role ARN that the pod identity association is created for.
    ServiceAccount string
    The Kubernetes service account that the pod identity association is created for.
    DisableSessionTags bool
    The Disable Session Tags of the pod identity association.
    Policy string
    The policy of the pod identity association.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs to apply to this resource.
    TargetRoleArn string
    The Target Role Arn of the pod identity association.
    WorkloadIdentityConfig Pulumi.AwsNative.Eks.Inputs.PodIdentityAssociationWorkloadIdentityConfig
    ClusterName string
    The cluster that the pod identity association is created for.
    Namespace string
    The Kubernetes namespace that the pod identity association is created for.
    RoleArn string
    The IAM role ARN that the pod identity association is created for.
    ServiceAccount string
    The Kubernetes service account that the pod identity association is created for.
    DisableSessionTags bool
    The Disable Session Tags of the pod identity association.
    Policy string
    The policy of the pod identity association.
    Tags TagArgs
    An array of key-value pairs to apply to this resource.
    TargetRoleArn string
    The Target Role Arn of the pod identity association.
    WorkloadIdentityConfig PodIdentityAssociationWorkloadIdentityConfigArgs
    cluster_name string
    The cluster that the pod identity association is created for.
    namespace string
    The Kubernetes namespace that the pod identity association is created for.
    role_arn string
    The IAM role ARN that the pod identity association is created for.
    service_account string
    The Kubernetes service account that the pod identity association is created for.
    disable_session_tags bool
    The Disable Session Tags of the pod identity association.
    policy string
    The policy of the pod identity association.
    tags list(object)
    An array of key-value pairs to apply to this resource.
    target_role_arn string
    The Target Role Arn of the pod identity association.
    workload_identity_config object
    clusterName String
    The cluster that the pod identity association is created for.
    namespace String
    The Kubernetes namespace that the pod identity association is created for.
    roleArn String
    The IAM role ARN that the pod identity association is created for.
    serviceAccount String
    The Kubernetes service account that the pod identity association is created for.
    disableSessionTags Boolean
    The Disable Session Tags of the pod identity association.
    policy String
    The policy of the pod identity association.
    tags List<Tag>
    An array of key-value pairs to apply to this resource.
    targetRoleArn String
    The Target Role Arn of the pod identity association.
    workloadIdentityConfig PodIdentityAssociationWorkloadIdentityConfig
    clusterName string
    The cluster that the pod identity association is created for.
    namespace string
    The Kubernetes namespace that the pod identity association is created for.
    roleArn string
    The IAM role ARN that the pod identity association is created for.
    serviceAccount string
    The Kubernetes service account that the pod identity association is created for.
    disableSessionTags boolean
    The Disable Session Tags of the pod identity association.
    policy string
    The policy of the pod identity association.
    tags Tag[]
    An array of key-value pairs to apply to this resource.
    targetRoleArn string
    The Target Role Arn of the pod identity association.
    workloadIdentityConfig PodIdentityAssociationWorkloadIdentityConfig
    cluster_name str
    The cluster that the pod identity association is created for.
    namespace str
    The Kubernetes namespace that the pod identity association is created for.
    role_arn str
    The IAM role ARN that the pod identity association is created for.
    service_account str
    The Kubernetes service account that the pod identity association is created for.
    disable_session_tags bool
    The Disable Session Tags of the pod identity association.
    policy str
    The policy of the pod identity association.
    tags Sequence[TagArgs]
    An array of key-value pairs to apply to this resource.
    target_role_arn str
    The Target Role Arn of the pod identity association.
    workload_identity_config PodIdentityAssociationWorkloadIdentityConfigArgs
    clusterName String
    The cluster that the pod identity association is created for.
    namespace String
    The Kubernetes namespace that the pod identity association is created for.
    roleArn String
    The IAM role ARN that the pod identity association is created for.
    serviceAccount String
    The Kubernetes service account that the pod identity association is created for.
    disableSessionTags Boolean
    The Disable Session Tags of the pod identity association.
    policy String
    The policy of the pod identity association.
    tags List<Property Map>
    An array of key-value pairs to apply to this resource.
    targetRoleArn String
    The Target Role Arn of the pod identity association.
    workloadIdentityConfig Property Map

    Outputs

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

    AssociationArn string
    The ARN of the pod identity association.
    AssociationId string
    The ID of the pod identity association.
    ExternalId string
    The External Id of the pod identity association.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociationArn string
    The ARN of the pod identity association.
    AssociationId string
    The ID of the pod identity association.
    ExternalId string
    The External Id of the pod identity association.
    Id string
    The provider-assigned unique ID for this managed resource.
    association_arn string
    The ARN of the pod identity association.
    association_id string
    The ID of the pod identity association.
    external_id string
    The External Id of the pod identity association.
    id string
    The provider-assigned unique ID for this managed resource.
    associationArn String
    The ARN of the pod identity association.
    associationId String
    The ID of the pod identity association.
    externalId String
    The External Id of the pod identity association.
    id String
    The provider-assigned unique ID for this managed resource.
    associationArn string
    The ARN of the pod identity association.
    associationId string
    The ID of the pod identity association.
    externalId string
    The External Id of the pod identity association.
    id string
    The provider-assigned unique ID for this managed resource.
    association_arn str
    The ARN of the pod identity association.
    association_id str
    The ID of the pod identity association.
    external_id str
    The External Id of the pod identity association.
    id str
    The provider-assigned unique ID for this managed resource.
    associationArn String
    The ARN of the pod identity association.
    associationId String
    The ID of the pod identity association.
    externalId String
    The External Id of the pod identity association.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing PodIdentityAssociation Resource

    Get an existing PodIdentityAssociation 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>, opts?: CustomResourceOptions): PodIdentityAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> PodIdentityAssociation
    func GetPodIdentityAssociation(ctx *Context, name string, id IDInput, state *PodIdentityAssociationState, opts ...ResourceOption) (*PodIdentityAssociation, error)
    public static PodIdentityAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static PodIdentityAssociation get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingPodIdentityAssociation:    type: aws-native:eks:PodIdentityAssociation    get:      id: ${id}
    import {
      to = aws-native_eks_pod_identity_association.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state PodIdentityAssociationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    PodIdentityAssociationWorkloadIdentityConfig, PodIdentityAssociationWorkloadIdentityConfigArgs

    The workload identity configuration of the pod identity association. When enabled, the association also provisions a SPIFFE identity for the workload. Setting Enabled to false disables workload identity and keeps the ARNs. Removing the property from the template leaves the association unchanged; set Enabled to false to disable workload identity.

    Enabled bool
    Whether workload identity is enabled for the association. Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.
    ProviderArn string
    The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
    TemplateArn string
    The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.
    Enabled bool
    Whether workload identity is enabled for the association. Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.
    ProviderArn string
    The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
    TemplateArn string
    The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.
    enabled bool
    Whether workload identity is enabled for the association. Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.
    provider_arn string
    The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
    template_arn string
    The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.
    enabled Boolean
    Whether workload identity is enabled for the association. Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.
    providerArn String
    The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
    templateArn String
    The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.
    enabled boolean
    Whether workload identity is enabled for the association. Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.
    providerArn string
    The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
    templateArn string
    The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.
    enabled bool
    Whether workload identity is enabled for the association. Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.
    provider_arn str
    The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
    template_arn str
    The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.
    enabled Boolean
    Whether workload identity is enabled for the association. Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.
    providerArn String
    The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
    templateArn String
    The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial