where can i find sso_account_id

0

I am signed in via a federated role (such as through JumpCloud SSO). Where can i find ssso_account_id that I can use in my aws cli config?

1 Answer
0

As a federated user signed in through a service like JumpCloud SSO, you can find your AWS account ID (which is the same as the sso_account_id for CLI configuration) in a few ways:

  1. In the AWS Management Console, look at the navigation bar in the upper right corner. You should see your user name displayed there. The account ID is typically shown above or next to your user name.

  2. If you don't see the account ID in the navigation bar, you can click on the "Support" icon in the upper right corner, and then select "Support Center" from the dropdown menu. Your 12-digit AWS account ID should be visible in the Support Center navigation pane.

  3. Alternatively, you can use the AWS CLI to retrieve your account ID. If you have the necessary permissions, you can run the command:

    aws sts get-caller-identity

    This command will return information including your AWS account ID.

Remember, the AWS account ID is a 12-digit number that uniquely identifies your AWS account. This is the value you would use for the sso_account_id in your AWS CLI configuration file when setting up SSO access.

It's important to note that as a federated user, you might have limited access to certain account information compared to IAM users or the root user. If you're unable to view the account ID using these methods, you may need to contact your AWS administrator for assistance.
Sources
View AWS account identifiers - AWS Account Management
Viewing your AWS account ID - AWS Identity and Access Management

profile picture
answered 11 days ago
profile picture
EXPERT
reviewed 11 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions