Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In addition to using the AWS Management Console through the portal, you can also access AWS programmatically using the AWS CLI and SDKs. There are two main approaches:

Option 1:

...

For quick, short-term programmatic access:

  1. Log into the AWS Access Portal using the steps above
  2. Select your desired AWS account and role
  3. In the account/role view, click "Command line or programmatic access"
  4. Choose your preferred option:
    • Option 1: Copy and paste the temporary credentials as environment variables
    • Option 2: Add the temporary credentials to your ~/.aws/credentials file
    • Option 3: Use the provided aws configure commands

Note: These credentials are temporary and will need to be refreshed periodically.

...

AWS CLI SSO Integration (Recommended)

For seamless, long-term programmatic access, configure the AWS CLI to work directly with IAM Identity Center:

...

  1. Sign in to SSO:
    aws sso login --profile dev-account
    This will open your browser for authentication (same process as portal login).
  2. Sign out when finished:
    aws sso logout

Option 2: Temporary Access Keys from the Portal

For quick, short-term programmatic access:

  1. Log into the AWS Access Portal using the steps above
  2. Select your desired AWS account and role
  3. In the account/role view, click "Command line or programmatic access"
  4. Choose your preferred option:
    • Option 1: Copy and paste the temporary credentials as environment variables
    • Option 2: Add the temporary credentials to your ~/.aws/credentials file
    • Option 3: Use the provided aws configure commands

Note: These credentials are temporary and will need to be refreshed periodically.

Benefits of AWS CLI SSO Integration

...