Skip to content

Commit 055462e

Browse files
committed
adding account_id access
1 parent 3df5fcc commit 055462e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/deploy-eks-cluster.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ fi
2222

2323
function deleteCluster() {
2424
echo "Cleanup role, security-group, open-id ${TEST_CLUSTER_NAME}"
25+
account_id=$(aws sts get-caller-identity --query "Account" --output text)
2526
rolename=$(echo ${TEST_CLUSTER_NAME} | awk -F- '{print "EBS_" $(NF-1) "_" $(NF)}')
2627
role_attached_policies=$(aws iam list-attached-role-policies --role-name $rolename --query 'AttachedPolicies[*].PolicyArn' --output text)
2728
for policy_arn in ${role_attached_policies};

0 commit comments

Comments
 (0)