Skip to content

Commit

Permalink
Make default region configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
theoctober19th committed Jan 30, 2024
1 parent efb0ee8 commit 2818165
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/setup-aws-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ sudo snap install aws-cli --classic
# Get Access key and secret key from MinIO
ACCESS_KEY=$(kubectl get secret -n minio-operator microk8s-user-1 -o jsonpath='{.data.CONSOLE_ACCESS_KEY}' | base64 -d)
SECRET_KEY=$(kubectl get secret -n minio-operator microk8s-user-1 -o jsonpath='{.data.CONSOLE_SECRET_KEY}' | base64 -d)

S3_BUCKET="spark"
DEFAULT_REGION="us-east-2"

# Configure AWS CLI credentials
aws configure set aws_access_key_id $ACCESS_KEY
aws configure set aws_secret_access_key $SECRET_KEY
aws configure set default.region us-east-2
aws configure set default.region $DEFAULT_REGION
echo "AWS CLI credentials set successfully"

0 comments on commit 2818165

Please sign in to comment.