We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- 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.
- bool
- The Disable Session Tags of the pod identity association.
- Policy string
- The policy of the pod identity association.
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Target
Role stringArn - The Target Role Arn of the pod identity association.
- Workload
Identity Pulumi.Config Aws Native. Eks. Inputs. Pod Identity Association Workload Identity Config
- 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.
- bool
- The Disable Session Tags of the pod identity association.
- Policy string
- The policy of the pod identity association.
-
Tag
Args - An array of key-value pairs to apply to this resource.
- Target
Role stringArn - The Target Role Arn of the pod identity association.
- Workload
Identity PodConfig Identity Association Workload Identity Config Args
- 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.
- bool
- The Disable Session Tags of the pod identity association.
- policy string
- The policy of the pod identity association.
- list(object)
- An array of key-value pairs to apply to this resource.
- target_
role_ stringarn - The Target Role Arn of the pod identity association.
- workload_
identity_ objectconfig
- 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.
- Boolean
- The Disable Session Tags of the pod identity association.
- policy String
- The policy of the pod identity association.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- target
Role StringArn - The Target Role Arn of the pod identity association.
- workload
Identity PodConfig Identity Association Workload Identity Config
- 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.
- boolean
- The Disable Session Tags of the pod identity association.
- policy string
- The policy of the pod identity association.
- Tag[]
- An array of key-value pairs to apply to this resource.
- target
Role stringArn - The Target Role Arn of the pod identity association.
- workload
Identity PodConfig Identity Association Workload Identity Config
- 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.
- bool
- The Disable Session Tags of the pod identity association.
- policy str
- The policy of the pod identity association.
-
Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- target_
role_ strarn - The Target Role Arn of the pod identity association.
- workload_
identity_ Podconfig Identity Association Workload Identity Config Args
- 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.
- Boolean
- The Disable Session Tags of the pod identity association.
- policy String
- The policy of the pod identity association.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
- target
Role StringArn - The Target Role Arn of the pod identity association.
- workload
Identity Property MapConfig
Outputs
All input properties are implicitly available as output properties. Additionally, the PodIdentityAssociation resource produces the following output properties:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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) -> PodIdentityAssociationfunc 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.
- 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 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 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.
- 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.
- 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 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.
- 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.
Tag, TagArgs
A set of tags to apply to the resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi