This commit is contained in:
Junaid Ali 2026-07-01 17:31:10 +05:30 committed by GitHub
commit 7116b05fff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -43,6 +43,15 @@ function asp() {
export AWS_EB_PROFILE=$1
export AWS_PROFILE_REGION=$(aws configure get region)
if [[ -z "${AWS_PROFILE_REGION}" ]]; then
if [[ -z "${available_profiles[(r)default]}" ]]; then
echo "region defaulting to us-east-1"
export AWS_PROFILE_REGION=us-east-1
else
export AWS_PROFILE_REGION=$(aws configure get region --profile default)
fi
fi
export AWS_REGION=$AWS_PROFILE_REGION
_aws_update_state