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

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

- Introduced lazy environment variable checking on ECR_LOGIN
This commit is contained in:
Wryn (yage) Wagner 2023-10-19 14:44:01 -06:00
parent f8ccce9285
commit 531aa52146

View File

@ -4,16 +4,15 @@ DEPENDENCIES+=(
docker
)
REQUIRED_ENV+=(
AWS_ACCOUNT
AWS_REGION
)
REQUIRED_ENV+=()
use cloud/aws/cli
#####################################################################
ECR_LOGIN() {
REQUIRED_ENV=(AWS_REGION AWS_ACCOUNT) CHECK_ENVIRONMENT || return 1
STATUS "performing AWS ECR docker login"
AWS ecr get-login-password \
| docker login \