File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ accessEntries :
2+ - principalARN : ${RESOURCE_CODEBUILD_ROLE_ARN}
3+ accessPolicies :
4+ - policyARN : " arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
5+ accessScope :
6+ type : cluster
Original file line number Diff line number Diff line change @@ -23,10 +23,3 @@ autoModeConfig:
2323accessConfig :
2424 authenticationMode : API
2525 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-
Original file line number Diff line number Diff line change @@ -44,9 +44,3 @@ remoteNetworkConfig:
4444accessConfig :
4545 authenticationMode : API
4646 bootstrapClusterCreatorAdminPermissions : true
47- accessEntries :
48- - principalARN : ${RESOURCE_CODEBUILD_ROLE_ARN}
49- accessPolicies :
50- - policyARN : " arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
51- accessScope :
52- type : cluster
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ aws eks describe-cluster --name "${EKS_CLUSTER_NAME}" &> /dev/null || cluster_ex
2121
2222if [ $cluster_exists -ne 0 ] && [[ " $cluster " == " standard" || " $cluster " == " all" ]]; then
2323 echo " Creating cluster ${EKS_CLUSTER_NAME} "
24- bash $SCRIPT_DIR /exec.sh " ${environment} " ' cat /cluster/eksctl/cluster.yaml | envsubst | eksctl create cluster -f -' &
24+ bash $SCRIPT_DIR /exec.sh " ${environment} " ' cat /cluster/eksctl/cluster.yaml /cluster/eksctl/access-entries.yaml | envsubst | eksctl create cluster -f -' &
2525else
2626 echo " Cluster ${EKS_CLUSTER_NAME} already exists"
2727fi
@@ -31,7 +31,7 @@ aws eks describe-cluster --name "${EKS_CLUSTER_AUTO_NAME}" &> /dev/null || auto_
3131
3232if [ $auto_cluster_exists -ne 0 ] && [[ " $cluster " == " standard" || " $cluster " == " all" ]]; then
3333 echo " Creating auto mode cluster ${EKS_CLUSTER_AUTO_NAME} "
34- bash $SCRIPT_DIR /exec.sh " ${environment} " ' cat /cluster/eksctl/cluster-auto.yaml | envsubst | eksctl create cluster -f -' &
34+ bash $SCRIPT_DIR /exec.sh " ${environment} " ' cat /cluster/eksctl/cluster-auto.yaml /cluster/eksctl/access-entries.yaml | envsubst | eksctl create cluster -f -' &
3535else
3636 echo " Auto mode cluster ${EKS_CLUSTER_AUTO_NAME} already exists"
3737fi
You can’t perform that action at this time.
0 commit comments