community icon indicating copy to clipboard operation
community copied to clipboard

Add support for Target IAM role in PodIdentityAssociation

Open pasi-romo-idealo opened this issue 5 months ago • 3 comments

Pod identity association has a new option, which makes it possible to configure a target IAM-role:

Image

This is not currently supported by the eks-controller:

https://aws-controllers-k8s.github.io/community/reference/eks/v1alpha1/podidentityassociation/#spec

More details about this new paremeter can be found e.g. here:

https://docs.aws.amazon.com/eks/latest/userguide/pod-id-assign-target-role.html

pasi-romo-idealo avatar Jun 13 '25 11:06 pasi-romo-idealo

Hello @pasi-romo-idealo 👋 Thank you for opening an issue in ACK! A maintainer will triage this issue soon.

We encourage community contributions, so if you're interested in tackling this yourself or suggesting a solution, please check out our Contribution and Code of Conduct guidelines.

You can find more information about ACK on our website.

github-actions[bot] avatar Jun 13 '25 11:06 github-actions[bot]

Keen to see this added as well and a little more context if it helps:

There is actually 3 changes here: disableSessionTags, targetRoleArn, and externalId.

Announcement with info on the API changes: https://aws.amazon.com/blogs/containers/amazon-eks-pod-identity-streamlines-cross-account-access/

aws-sdk-go-v2 has already been updated: https://github.com/aws/aws-sdk-go-v2/blob/main/service/eks/api_op_CreatePodIdentityAssociation.go https://github.com/aws/aws-sdk-go-v2/blob/main/service/eks/api_op_UpdatePodIdentityAssociation.go

Related Terraform provider change if of any use here: https://github.com/hashicorp/terraform-provider-aws/pull/42979

dyson avatar Jun 23 '25 05:06 dyson

Also struggled to work out how to use ack-generate to update these. If there are any docs I should look at I'm happy to create a PR.

dyson avatar Jun 23 '25 07:06 dyson

@pasi-romo-idealo support for Target IAM role should now be available in v1.8.0 of the ACK eks-controller.

knottnt avatar Aug 01 '25 19:08 knottnt