PyCharm with AWS ToolKit - IAM Auth method with AWS Profile Reference Still Requires SSO Login a Second Time

I'm using Pycharm 2025.1.1.1 and AWS ToolKit 3.71-251.

I'm trying to connect to AWS RDS Postgres with IAM auth. The issue I'm having is that even though I did aws sso login --profile my_profile and I get credentials in .aws/sso/cache, when I try to connect to the DB, I get the error:

No token found, please login and try again
Sign in to SSO session 'profile:my_profile' 

I'm not sure why I need to sign in again when I already have the credentials in cache.

What am I missing here? I looked all over the data source setting but couldn't find anything.
Is there any config in data sources or in AWS ToolKit that forces the IDE to look for and use the credentials already in .aws/sso/cache?

0
1 comment

@Geometry Dash Sounds like the IDE isn’t detecting the cached SSO session. Make sure your AWS Toolkit is configured to use the correct profile, and that your ~/.aws/config includes the proper sso_start_url and sso_region. Restarting PyCharm after login sometimes helps it pick up the session too.

0

Please sign in to leave a comment.