From a5169d8dab9e8c4918afdf098b9c1131ef9b0400 Mon Sep 17 00:00:00 2001 From: Jayanth Varavani <1111446+jayanthvn@users.noreply.github.com> Date: Tue, 23 Nov 2021 05:52:11 +0530 Subject: [PATCH] Use an unique s3 bucket name (#1760) Update region --- scripts/lib/cluster.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/cluster.sh b/scripts/lib/cluster.sh index 85022fd426..4c5a887c3f 100644 --- a/scripts/lib/cluster.sh +++ b/scripts/lib/cluster.sh @@ -53,7 +53,7 @@ function up-test-cluster() { } function up-kops-cluster { - aws s3api create-bucket --bucket kops-cni-test-temp --region $AWS_DEFAULT_REGION --create-bucket-configuration LocationConstraint=$AWS_DEFAULT_REGION + aws s3api create-bucket --bucket kops-cni-test-eks --region $AWS_DEFAULT_REGION --create-bucket-configuration LocationConstraint=$AWS_DEFAULT_REGION curl -LO https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64 chmod +x kops-linux-amd64 sudo mv kops-linux-amd64 /usr/local/bin/kops @@ -83,11 +83,11 @@ function up-kops-cluster { sleep 5 echo "Waiting for cluster validation" done - kubectl apply -f https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/${MANIFEST_CNI_VERSION}/config/v1.6/cni-metrics-helper.yaml + kubectl apply -f https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/${MANIFEST_CNI_VERSION}/config/master/cni-metrics-helper.yaml } function down-kops-cluster { kops delete cluster --name ${CLUSTER_NAME} --yes aws s3 rm ${KOPS_STATE_STORE} --recursive - aws s3 rb ${KOPS_STATE_STORE} --region us-west-2 + aws s3 rb ${KOPS_STATE_STORE} --region $AWS_DEFAULT_REGION }