How to List, Create and Delete aliases for your AWS account

The default sign-in url for your AWS account is as shown below where account_id is the unique identifier of your AWS account.

https://account_id.signin.aws.amazon.com/console/

You can create a user friendly alias for your account and use it for logging in. The sign-in url with your alias name looks as below where ‘alias’ is the alias name of your account.

https://alias.signin.aws.amazon.com/console/

You can view the current aliases of your AWS account using below command

aws iam list-account-aliases

Use the below command to create new alias where aliasname is the name of the alias.

aws iam create-account-alias --account-alias aliasname

Use the below command to delete an alias where aliasname is the name of the alias.

aws iam delete-account-alias --account-alias aliasname

See also  How to get Date from Timestamp in Redshift Database