Commit f6cb714d authored by nimrod's avatar nimrod
Browse files

Add account alias to the AWS CLI.

parent 0c464b07
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
[toplevel]

account = sts get-caller-identity --query 'Account' --output text
whoami = sts get-caller-identity
region = configure get region
ecr-login = !aws ecr get-login-password | podman login --username AWS --password-stdin "$(aws whoami --query "Account" --output text).dkr.ecr.$(aws region).amazonaws.com"