Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

generate url to feature in aws console of a specific account

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

like image 514
Eduardo Oliveira Avatar asked Mar 02 '20 16:03

Eduardo Oliveira


People also ask

How do I create a AWS URL?

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.

How do I customize my IAM user URL?

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.

How do I get AWS console link?

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/.

How do I create a multiple IAM URL?

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.


1 Answers

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

like image 156
Niklas Rosencrantz Avatar answered Nov 07 '22 06:11

Niklas Rosencrantz