Skip to content

AWS not displayed when profile that gets credentials from a source_profile is enabled #3834

@grimm26

Description

@grimm26

Bug Report

Current Behavior

$aws not displayed when AWS_PROFILE set that gets credentials from a source_profile is enabled

Expected Behavior

display $aws

Additional context/Screenshots

~/.aws/config:

[profile base_account]
region = us-east-2

[profile other_account]
role_arn = arn:aws:iam::9873489765:role/admin_role
source_profile = base_account
region = us-east-2

base_account has credentials in ~/.aws/credentials, other_account does not because it uses base_account's credentials.

Possible Solution

Read ~/.aws/config profile setting to see if it has a source_profile and check for credentials for that profile.

Environment

  • Starship version: 1.5.4
  • Shell type: zsh
  • Shell version: 5.8
  • Shell plugin manager: antibody
  • Terminal emulator: iTerm
  • Operating system: macOS 11.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions