Skip to content

Use Pod Identity instead of IRSA#3171

Closed
Adam-D-Lewis wants to merge 3 commits intoclaude/investigate-issue-011CUQHTM3P2xpX98sxMQ2aXfrom
claude/pod-identity-011CUZrsNUzyHz7LYGCZdymZ
Closed

Use Pod Identity instead of IRSA#3171
Adam-D-Lewis wants to merge 3 commits intoclaude/investigate-issue-011CUQHTM3P2xpX98sxMQ2aXfrom
claude/pod-identity-011CUZrsNUzyHz7LYGCZdymZ

Conversation

@Adam-D-Lewis
Copy link
Member

@Adam-D-Lewis Adam-D-Lewis commented Oct 28, 2025

Converts IRSA to Pod Identity

This commit migrates the Cluster Autoscaler from IRSA (IAM Roles for
Service Accounts) to the newer EKS Pod Identity feature.

Changes:
- Add eks-pod-identity-agent addon to EKS cluster
- Replace OIDC-based trust policy with Pod Identity trust policy
- Add aws_eks_pod_identity_association resource to link IAM role to service account
- Remove eks.amazonaws.com/role-arn annotation from Helm service account
- Simplify configuration by removing complex OIDC conditions

Benefits of Pod Identity over IRSA:
- Simpler setup without OIDC provider complexity
- Better scalability (no IAM trust policy size limits)
- Easier multi-cluster management (same role works across clusters)
- AWS's recommended approach going forward

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit completes the migration to Pod Identity by also converting
the EBS CSI Driver from IRSA to Pod Identity.

Changes:
- Replace OIDC-based trust policy with Pod Identity trust policy for EBS CSI Driver
- Add aws_eks_pod_identity_association for EBS CSI Driver
- Remove complex OIDC conditions

Now both the Cluster Autoscaler and EBS CSI Driver use Pod Identity
instead of IRSA, providing a consistent and simplified IAM configuration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@Adam-D-Lewis Adam-D-Lewis requested a review from a team as a code owner October 28, 2025 16:28
@Adam-D-Lewis Adam-D-Lewis requested review from dcmcand and viniciusdc and removed request for a team October 28, 2025 16:28
@Adam-D-Lewis Adam-D-Lewis marked this pull request as draft October 28, 2025 16:28
@Adam-D-Lewis Adam-D-Lewis changed the title Claude/pod identity 011 cu zrs n uzy hz7 lygc zdym z Use Pod Identity instead of IRSA Oct 28, 2025
This commit removes all IRSA (IAM Roles for Service Accounts) code
now that we've fully migrated to Pod Identity.

Changes:
- Remove OIDC provider and tls_certificate data source
- Remove cluster_oidc_issuer_url and oidc_provider_arn outputs
- Remove cluster_autoscaler_role_arn output and variable passing
- Remove iam_role_arn variable from cluster-autoscaler module
- Clean up InputVars class in kubernetes_initialize stage

The codebase now exclusively uses EKS Pod Identity for both:
- Cluster Autoscaler
- EBS CSI Driver

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done 💪🏾

Development

Successfully merging this pull request may close these issues.

2 participants