AWS login console extremely slow
amazon web services - How to login to AWS Console using Access Key, Secret Key and Session token? - Stack Overflow
Is it possible to access to aws console through an intranet? Or is it necessary to through an intranet?
Private Access to the AWS Management Console is generally available
Videos
AWS login console seems to act weirdly on 2 of my devices. When i try to log into the console through my desktop, it first takes a long time to open the link, console.aws.amazon.com and then after providing the MFA it takes a very long time to log into the console if at all. However, same is not the case with my laptop as it works perfectly fine and normal on my laptop. Both connected to the same network with router provided dynamic IPs. I do not have any DNS servers set up as well.
What have i tried till now:Tried resetting the Cookies, Cache and other site data.Tried using different browsers and incognito mode.Tried using Cloudflare and Google DNS servers.
The only difference between my PC and laptop is that my PC is connected through ethernet cable and laptop through WIFI.
Any help and guidance would be appreciated.
EDIT: It looks like the servers authenticating the login have no issues with the login now. It is working perfectly normal for me now.
No concrete reason was found throughout the problem and it was likely just something on AWS's end which they seem to have took notice and fixed now. Will add up new updates if needed.
You can generate AWS console URL from the temporary credentials by retrieving a SigninToken from the https://signin.aws.amazon.com/federation endpoint.
First, you need to create a JSON object with the AWS temporary credentials:
{
"sessionId": "<aws access key id>",
"sessionKey": "<aws secret access key>",
"sessionToken": "<aws session token>"
}
Use that JSON as a value for "Session" parameter in the following URL
https://signin.aws.amazon.com/federation?Action=getSigninToken&Session=<the JSON object>
The JSON response will look like:
{
"SigninToken":"VsPfcblaC....."
}
Use the SigninToken value in the following URL. It will open the console:
https://signin.aws.amazon.com/federation?Action=login&Destination=https://console.aws.amazon.com/&SigninToken=<SigninToken>
The "Destination" value can be a specific service URL like EC2 or S3
I created a sample implementation here: https://gist.github.com/janaz/80b1f6054a044ce78cbf5abae7288b50
First, make sure you have the correct IAM Roles with permissions to access your AWS resources (S3, Console, etc.) Read more details in Cognito Developer Guide - IAM Roles.
About your Java Code, it looks like the example in the link provided is not ready to use as "copy & paste". Also, it depends on the AWS SDK for Java that you need to import into your project.
Make sure to paste the code below the imports into the right code block. Multiple markers errors appear when you're trying to insert statements directly into a class, rather than having them in a constructor, method, initializer, etc.