# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 #!/bin/bash # Cluster 3 Name & Masters Role export CLUSTER3_NAME=$(aws cloudformation describe-stack-resources --stack-name EksMulti-eks-c3 --query "StackResources[4].PhysicalResourceId" --output text) export CLUSTER3_ROLE_NAME=$(aws cloudformation describe-stack-resources --stack-name EksMulti-eks-c3 --query "StackResources[6].PhysicalResourceId" --output text) export CLUSTER3_ROLE_ARN=$(aws iam get-role --role-name ${CLUSTER3_ROLE_NAME} --query 'Role.Arn' --output text) export THANOS_BUCKET=$(aws cloudformation describe-stacks --stack-name EksMulti-eks-c3 --query "Stacks[0].Outputs[1].OutputValue" --output text) aws eks update-kubeconfig --alias cluster3 --name $CLUSTER3_NAME --role-arn $CLUSTER3_ROLE_ARN