Usually, the login URL for IAM users is in this format

https://{Account Id}

But it is possible to make this URL more memorable and user-friendly.

To achieve this, follow the steps below:

Step 01: Go to IAM Dashboard

Step 02: Click on the Create link that is located right next to the account id:

AWS IAM dashboard showing Account Alias section with a Create button

Step 03: This brings up the Create Account Alias dialog box.

Create alias for account dialog is shown

Step 03: Enter your desired alias and save.

Create alias for account dialog with preferred alias value provided. It shows an information box saying IAM users can still access the account by account id
Since the name we provide goes in the URL, it must be unique globally.

If you don’t pick a unique name, you will get an error like this:

Error message box saying alias not created because it already exists

and when you choose your unique name, you should see it in effect:

IAM dashboard showing account alias created
You can keep on using the account id. Setting an alias gives an additional URL that you can use.


Categories: aws

Volkan Paksoy

Volkan Paksoy is a software developer with more than 15 years of experience, focusing mostly on C# and AWS. He’s a home lab and self-hosting fan who loves to spend his personal time developing hobby projects with Raspberry Pi, Arduino, LEGO and everything in-between.