From 336a4dff94766565647ce027153cbab49b17cb57 Mon Sep 17 00:00:00 2001 From: vcerenu Date: Wed, 13 Nov 2024 13:43:23 -0300 Subject: [PATCH] Modify cluster name --- .github/workflows/deployment-test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deployment-test.yml b/.github/workflows/deployment-test.yml index 039c5f8e..0110a2ba 100644 --- a/.github/workflows/deployment-test.yml +++ b/.github/workflows/deployment-test.yml @@ -16,6 +16,7 @@ permissions: env: AWS_REGION: us-east-1 + CLUSTER_NAMME: test-eks-deploy${{ github.event.number }} jobs: EKS_deployment_test: @@ -44,7 +45,7 @@ jobs: - name: Deploy eks cluster run: | eksctl create cluster \ - --name test-eks-deploy${{ github.event.number }} \ + --name ${{ env.CLUSTER_NAMME }} \ --with-oidc \ --region ${{ env.AWS_REGION }} \ --nodes-min 6 \ @@ -60,8 +61,8 @@ jobs: --name ebs-csi-controller-sa \ --region ${{ env.AWS_REGION }} \ --namespace kube-system \ - --cluster test-eks-deploy${{ github.event.number }} \ - --role-name eksctl-EBS-CSI-DriverRole-test-eks-deploy${{ github.event.number }} \ + --cluster ${{ env.CLUSTER_NAMME }} \ + --role-name eksctl-EBS-CSI-DriverRole-${{ env.CLUSTER_NAMME }} \ --role-only \ --attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \ --approve @@ -70,9 +71,9 @@ jobs: run: | eksctl create addon \ --name aws-ebs-csi-driver \ - --cluster test-eks-deploy${{ github.event.number }} \ + --cluster ${{ env.CLUSTER_NAMME }} \ --region ${{ env.AWS_REGION }} \ - --service-account-role-arn arn:aws:iam::567970947422:role/eksctl-EBS-CSI-DriverRole-test-eks-deploy${{ github.event.number }} \ + --service-account-role-arn arn:aws:iam::567970947422:role/eksctl-EBS-CSI-DriverRole-${{ env.CLUSTER_NAMME }} \ --force - name: Create Wazuh indexer certificates @@ -196,7 +197,7 @@ jobs: if: always() run: | eksctl delete cluster \ - --name test-eks-deploy-${{ github.event.number }}-a \ + --name ${{ env.CLUSTER_NAMME }} \ --region ${{ env.AWS_REGION }} Local_deployment_test: