Skip to content

Improving docs to support configuration questions #97

@mtliendo

Description

@mtliendo

First timer with SSO here 👋🏽 After following this guide on configuring SSO, and then taking Ben's advice for setting up CLI access, I have the following simple questions and I'd be happy to PR the docs so that it can help others. Personally, I think some of my stumbling blocks stem from having to switch my mental model from thinking in accounts to thinking in roles/SSO.

A few of the questions are based off of this code snippet in the readme:

[profile my-sso-profile]
sso_start_url = https://example.awsapps.com/start
sso_region = us-east-1 # the region Identity Center is configured in
sso_account_id = 123456789012
sso_role_name = MyRoleName
region = us-east-2 # the region to use for AWS API calls
  1. Which parts of this refer to the account that I configured Identity Center in and which refers to the account I want to use?
  2. If I leave this empty, and run aws-sso-util configure profile [my-profile] I get "No Identity Center instance found". If I update the config above and set the sso_account_id to one of my org accounts, then I get a credential_process key added. How do I get the CLI to prompt me to enter in values?
  3. When testing to see if this works, I ran aws-sso-util login. Is this needed to provide temporary credentials--thus removing the need for an ~/.aws/credentials file?
  4. After logging in, how do I run AWS CLI commands? Doing aws s3 ls yields an "Unable to locate credentials. You can configure credentials by running "aws configure" error. Passing in the profile with --profile gave me returned "An error occurred (ForbiddenException) when calling the GetRoleCredentials operation: No access" (this user has the the powerUser role applied).

Again, happy to update the docs to provide guidance for others as well!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions