Skip to content

Commit 0be1822

Browse files
committed
Change EKS addons auth from IRSA to Pod Identity
1 parent dd0ee2b commit 0be1822

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎infra/aws/main.yaml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,15 +430,19 @@ Resources:
430430
Properties:
431431
NamespaceConfig:
432432
Namespace: "kube-system"
433-
ServiceAccountRoleArn: !GetAtt VdcClusterCsiDriverRole.Arn
433+
PodIdentityAssociations:
434+
- ServiceAccount: "ebs-csi-controller-sa"
435+
RoleArn: !GetAtt VdcClusterCsiDriverRole.Arn
434436
ClusterName: !Ref VdcCluster
435437
AddonName: "aws-ebs-csi-driver"
436438
VdcClusterAddonCloudWatchAgent:
437439
Type: "AWS::EKS::Addon"
438440
Properties:
439441
NamespaceConfig:
440442
Namespace: "amazon-cloudwatch"
441-
ServiceAccountRoleArn: !GetAtt VdcClusterCloudWatchObservabilityRole.Arn
443+
PodIdentityAssociations:
444+
- ServiceAccount: "cloudwatch-agent"
445+
RoleArn: !GetAtt VdcClusterCloudWatchObservabilityRole.Arn
442446
ClusterName: !Ref VdcCluster
443447
AddonName: "amazon-cloudwatch-observability"
444448
VdcClusterAddonNodeMonitoringAgent:

0 commit comments

Comments
 (0)