Skip to content

Commit

Permalink
v3.6.6
Browse files Browse the repository at this point in the history
=====================================================================

--- Changes ------------------------------

- Allow CI more leniency in preparing aws environment
  • Loading branch information
wrynegade committed Oct 23, 2023
1 parent 768350e commit 570fc6a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions zsh/lib/cloud/aws/cli.module.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ REQUIRED_ENV+=()
#####################################################################

AWS() {
REQUIRED_ENV=(AWS_REGION AWS_ACCOUNT AWS_PROFILE) CHECK_ENVIRONMENT || return 1
local ARGS=()

aws \
--profile $AWS_PROFILE \
--region $AWS_REGION \
--output json \
$@
ARGS+=(--output json)

[ ! $CI ] && {
REQUIRED_ENV=(AWS_REGION AWS_ACCOUNT AWS_PROFILE) CHECK_ENVIRONMENT || return 1
ARGS+=(--profile $AWS_PROFILE)
ARGS+=(--region $AWS_REGION)
}

aws ${ARGS[@]} $@
}

0 comments on commit 570fc6a

Please sign in to comment.