From 2128d7bf2571f6285b3649467b4c8f5ead9666a7 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 24 Mar 2024 14:49:33 +0200 Subject: [PATCH] Rename the account AWS CLI alias to account-id. It overrides the account service. --- .aws/cli/alias | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.aws/cli/alias b/.aws/cli/alias index 00f01f4..5013e37 100644 --- a/.aws/cli/alias +++ b/.aws/cli/alias @@ -1,6 +1,6 @@ [toplevel] -account = sts get-caller-identity --query 'Account' --output text +account-id = 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" -- GitLab