I'm looking to a way to generate urls/links to specific resources of a given account in the AWS console website.
For instance I want to link to the summary view of a given user in IAM. The resource URL is the following:
https://console.aws.amazon.com/iam/home?#/users/user.name
All good, but how do I force the browser to authenticate in the correct AWS account?
As as hypothetical example:
https://account-name.console.aws.amazon.com/iam/home?#/users/user.name
On the other hand, knowing that sending the user to:
https://account-name.signin.aws.amazon.com/console/
Will trigger the login process for the "account-name" account, how can I send the user to a specific part of the AWS console afterwords?
Thanks
On the Directories page, choose your directory ID. On the Directory details page, do one of the following: If you have multiple Regions showing under Multi-Region replication, select the Region where you want to create your access URL, and then choose the Application management tab.
To customize your URL In the IAM Identity Center console, under Dashboard, go to the AWS access portal section at the bottom of the page. Choose Customize. Enter your desired domain name and choose Save.
If you're a root user, open the Sign in page, select Root user, and sign in using your AWS account root user credentials. Sign in using a custom URL https://account_alias_or_id.signin.aws.amazon.com/console/.
To create one or more IAM users (console) In the navigation pane, choose Users and then choose Add users. Type the user name for the new user. This is the sign-in name for AWS. If you want to add multiple users, choose Add another user for each additional user and type their user names.
Some examples that worked for me, if I use real account number (or account alias) for the S3 and CloudFormation services. I didn't find the official documentation that it works for every service but try it.
https://0123456789.signin.aws.amazon.com/console/s3/?bucket=fake-bucket-0123456789
This redirects me to the S3 bucket named "fake-bucket-0123456789"
https://0123456789.signin.aws.amazon.com/console/cloudformation
This redirects me to Cloudformation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With