From 71d36f1abd9ac7d173afcecde5ea8735439df249 Mon Sep 17 00:00:00 2001 From: Amanuel Engeda Date: Wed, 15 May 2024 10:33:33 -0700 Subject: [PATCH] Add cloudwatch Policy --- .github/actions/e2e/setup-cluster/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/e2e/setup-cluster/action.yaml b/.github/actions/e2e/setup-cluster/action.yaml index 6f434ed5ffa7..390790572544 100644 --- a/.github/actions/e2e/setup-cluster/action.yaml +++ b/.github/actions/e2e/setup-cluster/action.yaml @@ -78,6 +78,7 @@ runs: --capabilities CAPABILITY_NAMED_IAM \ --parameter-overrides "ClusterName=$CLUSTER_NAME" \ --tags "testing/type=e2e" "testing/cluster=$CLUSTER_NAME" "github.com/run-url=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" "karpenter.sh/discovery=$CLUSTER_NAME" + aws iam attach-role-policy --policy-arn arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy --role-name KarpenterNodeRole-$CLUSTER_NAME - name: create or upgrade cluster shell: bash env: