=====================================================================

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

- Allow CI more leniency in preparing aws environment
This commit is contained in:
Wryn (yage) Wagner 2023-10-23 12:47:53 -06:00
parent 768350e6ab
commit 570fc6a435

View File

@ -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[@]} $@
}