Skip to content

Connect an AWS profile

CloudPouch reads your existing local AWS configuration — the same ~/.aws/credentials and ~/.aws/config files the AWS CLI uses — and supports the profile types listed below, so there is no separate credential setup and no pasting keys into the app. Credentials stay in your local ~/.aws files and are used to sign requests to AWS; you pick which profile to analyze. Some profiles that work in the AWS CLI need a different configuration for CloudPouch — see Credential helpers and role chains.

Select any screenshot to open it at full resolution.

CloudPouch works with the credential patterns you likely already use with the AWS CLI:

  • Static IAM user credentials in ~/.aws/credentials.
  • AWS SSO profiles in ~/.aws/config (IAM Identity Center).
  • Shared sso-session blocks referenced by multiple profiles — the AWS CLI’s newer SSO format.
  • Role-chaining profiles that assume a role via source_profile.
  • aws login profiles created by the AWS CLI’s browser-based sign-in. No access keys, no IAM Identity Center setup — these need AWS CLI 2.32.0 or newer, since that is the CLI that creates the sign-in session.
  • Credential helper profiles that fetch credentials from an external command through credential_process, whether that is an off-the-shelf credential helper or your own corporate one. CloudPouch runs whatever command the profile names, so no AWS CLI is needed for these at all.

Role chains work on top of helper-backed and aws login-backed profiles too, as long as no MFA token code is involved. A few profile shapes stay outside that scope: Credential helpers and role chains lists the unsupported profile shapes and the workarounds available for some of them.

If you have no default profile in ~/.aws/credentials, CloudPouch shows a welcome screen on startup until a usable profile is available. You do not need an ~/.aws/credentials file at all — profiles defined only in ~/.aws/config, which is where aws login and credential_process profiles live, are enough.

CloudPouch supports the AWS CLI’s SSO session sharing format: define one sso-session block and reference it from as many profiles as you need. When you select an SSO profile whose session has expired or was never started, CloudPouch launches the browser-based AWS SSO sign-in automatically — complete it in your browser and CloudPouch picks up the session.

[profile my-dev-profile]
sso_session = my-sso
sso_account_id = 123456789011
sso_role_name = readOnly
region = us-west-2
[profile my-other-profile]
sso_session = my-sso
sso_account_id = 555555555555
sso_role_name = readOnly
region = us-west-2
[sso-session my-sso]
sso_region = us-east-1
sso_start_url = https://my-sso-portal.awsapps.com/start
sso_registration_scopes = sso:account:access

For full details, see the AWS CLI SSO guide or Simplified Configuration of SSO Profiles in AWS CLI Using SSO Sessions.

Use this workflow when you want to analyze a different AWS account. The profile picker changes the active analysis context.

  1. Press Cmd/Ctrl + K in the main CloudPouch window.
  2. Type part of the profile name to narrow the results.
  3. Select the matching result, or use the arrow keys and Enter.
  4. Open Billing, Savings, or Compare for that profile and check the period before reading its results.

CloudPouch quick profile picker with moje in the search field, seven matching AWS profiles, and keyboard navigation instructions.

The quick picker shown above is for selecting an account. Typing moje narrows this example list to seven matching profiles.

You can also select a visible profile in the main window’s sidebar. Switching profiles does not require signing out of another AWS account; an expired session may require authentication for the profile you select.

Use this separate workflow to keep the sidebar and quick picker manageable. It takes place in the Settings dialog.

  1. Open the header’s gear menu and choose Settings.
  2. Select Profiles in the Settings navigation.
  3. Search for the profile you want to manage.
  4. Choose Hide → in the Visible column, or ← Show in the Hidden column.
  5. Close Settings. Use the sidebar or Cmd/Ctrl + K when you want to select an account for analysis.

The Profiles settings screenshot shows this management screen. Visibility is a CloudPouch display preference: hiding a profile leaves its AWS configuration and permissions intact.

Reload profiles after an external configuration change

Section titled “Reload profiles after an external configuration change”

If you added or edited a profile outside CloudPouch while the app was running, use Reload AWS Profiles in the sidebar, or Cmd + R on macOS / Ctrl + R on Windows and Linux. This refreshes profile discovery; it does not switch accounts or refresh billing costs. Your current view and running scan survive the reload.

CloudPouch needs read access to billing data and resource metadata for the Cost Insights you run — it never creates, modifies, or deletes AWS resources. A profile you already use for read-only auditing usually works. For a precise policy, see AWS permissions or follow Create a CloudPouch IAM policy.

If a bulk Cost Insights run hits missing permissions, CloudPouch does not silently show empty results: it reports the affected AWS service, region, API operation, and error code (such as AccessDenied), so you can tell “nothing to optimize” apart from “could not check”.

  • Invalid or expired SSO session — CloudPouch shows an error message; re-run the browser authentication for that profile.
  • SSO sign-in not completed — if you abandon the browser flow, CloudPouch will not show another profile’s data in its place; select the profile again and finish the sign-in.
  • Expired aws login session — CloudPouch names the profile and shows the aws login --profile <name> command to run. Run it, then continue where you were.
  • The credential helper failed — CloudPouch names the failure category, such as a missing helper or a locked keychain, rather than a generic credentials error. See Credential helpers and role chains.
  • The profile shape is not supported — see AWS credentials and SSO profiles.
  • More cases in Troubleshooting.