v3.6.6
===================================================================== --- Changes ------------------------------ - Allow CI more leniency in preparing aws environment
This commit is contained in:
parent
768350e6ab
commit
570fc6a435
@ -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[@]} $@
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user