Skip to content

Commit c1c93a6

Browse files
committed
fix: export RESOURCE_CODEBUILD_ROLE_ARN in common-env.sh
1 parent 6c4e1d8 commit c1c93a6

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

cluster/eksctl/cluster-auto.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: eksctl.io/v1alpha5
2+
kind: ClusterConfig
3+
availabilityZones:
4+
- ${AWS_REGION}a
5+
- ${AWS_REGION}b
6+
- ${AWS_REGION}c
7+
metadata:
8+
name: ${EKS_CLUSTER_AUTO_NAME}
9+
region: ${AWS_REGION}
10+
version: "1.33"
11+
tags:
12+
karpenter.sh/discovery: ${EKS_CLUSTER_AUTO_NAME}
13+
created-by: eks-workshop-v2
14+
env: ${EKS_CLUSTER_AUTO_NAME}
15+
vpc:
16+
cidr: 10.43.0.0/16
17+
clusterEndpoints:
18+
privateAccess: true
19+
publicAccess: true
20+
autoModeConfig:
21+
enabled: true
22+
nodePools: [general-purpose, system]
23+
accessConfig:
24+
authenticationMode: API
25+
bootstrapClusterCreatorAdminPermissions: true
26+
accessEntries:
27+
- principalARN: ${RESOURCE_CODEBUILD_ROLE_ARN}
28+
accessPolicies:
29+
- policyARN: "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
30+
accessScope:
31+
type: cluster
32+

hack/lib/common-env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ if [ -z "$SKIP_CREDENTIALS" ]; then
2323

2424
IDE_ROLE_NAME="${EKS_CLUSTER_NAME}-ide-role"
2525
IDE_ROLE_ARN="arn:aws:iam::${ACCOUNT_ID}:role/${IDE_ROLE_NAME}"
26+
27+
export RESOURCE_CODEBUILD_ROLE_ARN="${IDE_ROLE_ARN}"
2628
fi
2729

2830
export DOCKER_CLI_HINTS="false"

0 commit comments

Comments
 (0)