Skip to content

Commit 2818165

Browse files
Make default region configurable.
1 parent efb0ee8 commit 2818165

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/setup-aws-cli.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ sudo snap install aws-cli --classic
66
# Get Access key and secret key from MinIO
77
ACCESS_KEY=$(kubectl get secret -n minio-operator microk8s-user-1 -o jsonpath='{.data.CONSOLE_ACCESS_KEY}' | base64 -d)
88
SECRET_KEY=$(kubectl get secret -n minio-operator microk8s-user-1 -o jsonpath='{.data.CONSOLE_SECRET_KEY}' | base64 -d)
9+
910
S3_BUCKET="spark"
11+
DEFAULT_REGION="us-east-2"
1012

1113
# Configure AWS CLI credentials
1214
aws configure set aws_access_key_id $ACCESS_KEY
1315
aws configure set aws_secret_access_key $SECRET_KEY
14-
aws configure set default.region us-east-2
16+
aws configure set default.region $DEFAULT_REGION
1517
echo "AWS CLI credentials set successfully"

0 commit comments

Comments
 (0)