File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,23 @@ Resources:
472472 Path : /
473473 RoleName : " {{.Cluster.LocalID}}-e2e-cdp"
474474 Type : ' AWS::IAM::Role'
475+ E2EEKSIAMTestAccessEntryCDP :
476+ Type : " AWS::EKS::AccessEntry"
477+ Properties :
478+ AccessPolicies :
479+ - AccessScope :
480+ Type : " cluster"
481+ PolicyArn : " arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
482+ ClusterName : !Ref EKSCluster
483+ PrincipalArn : !GetAtt E2EEKSIAMTestCDP.Arn
484+ Username : !Join
485+ - ' '
486+ - - !Sub 'arn:aws:sts::${AWS::AccountId}:assumed-role/'
487+ - !Ref E2EEKSIAMTestCDP
488+ - ' /{{`{{SessionName}}`}}'
489+ KubernetesGroups :
490+ - zalando:cdp
491+ Type : " STANDARD"
475492 E2EEKSIAMTestDeploymentService :
476493 Properties :
477494 AssumeRolePolicyDocument :
@@ -485,6 +502,24 @@ Resources:
485502 Version : 2012-10-17
486503 Path : /
487504 RoleName : " {{.Cluster.LocalID}}-e2e-deployment-service"
505+ Type : ' AWS::IAM::Role'
506+ E2EEKSIAMTestAccessEntryDeploymentService :
507+ Type : " AWS::EKS::AccessEntry"
508+ Properties :
509+ AccessPolicies :
510+ - AccessScope :
511+ Type : " cluster"
512+ PolicyArn : " arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
513+ ClusterName : !Ref EKSCluster
514+ PrincipalArn : !GetAtt E2EEKSIAMTestDeploymentService.Arn
515+ Username : !Join
516+ - ' '
517+ - - !Sub 'arn:aws:sts::${AWS::AccountId}:assumed-role/'
518+ - !Ref E2EEKSIAMTestDeploymentService
519+ - ' /{{`{{SessionName}}`}}'
520+ KubernetesGroups :
521+ - zalando:deployment-service
522+ Type : " STANDARD"
488523 {{ end }}
489524 # TODO: IAM POLICY
490525 EKSCNIIPv6Policy :
You can’t perform that action at this time.
0 commit comments