Skip to content

Commit 2266d48

Browse files
committed
Allow Manual role Admin access in e2e clusters
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
1 parent 07aa48f commit 2266d48

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cluster/cluster.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,21 @@ Resources:
252252
KubernetesGroups:
253253
- zalando:administrator
254254
Type: "STANDARD"
255+
{{- if eq .Cluster.Environment "e2e" }}
256+
EKSAccessEntryManualAdministratorAuth:
257+
Type: "AWS::EKS::AccessEntry"
258+
Properties:
259+
AccessPolicies:
260+
- AccessScope:
261+
Type: "cluster"
262+
PolicyArn: "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
263+
ClusterName: !Ref EKSCluster
264+
PrincipalArn: !Sub "arn:aws:iam::${AWS::AccountId}:role/Manual"
265+
Username: !Sub "arn:aws:sts::${AWS::AccountId}:assumed-role/Manual/{{`{{SessionName}}`}}"
266+
KubernetesGroups:
267+
- zalando:administrator
268+
Type: "STANDARD"
269+
{{- end }}
255270
EKSAddonPodIdentityAgent:
256271
Type: AWS::EKS::Addon
257272
Properties:

0 commit comments

Comments
 (0)