Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source_role does not work #333

Open
towerbe opened this issue Nov 10, 2023 · 3 comments
Open

Source_role does not work #333

towerbe opened this issue Nov 10, 2023 · 3 comments
Labels

Comments

@towerbe
Copy link

towerbe commented Nov 10, 2023

When I try to configure a second profile using the first profile as its source no profiles show up in the list at all.

To Reproduce
Steps to reproduce the behavior:

  1. configure an initial profile such as the following.
    [profile devops-infra-tagger]
    aws_account_id = 000000000000
    role_name = CDDOTagging
    color = 3b9170

Everything works fine.

  1. Add a second profile using the first profile as the source_role as follows

[profile dhitagger]
role_arn = arn:aws:iam::111111111111:role/CDDOTagging
source_profile = devops-infra-tagger

  1. Got to the extension in the browser (when already logged into AWS) an no profiles show up
image

I use this method for CLI connections all the time with no issues. Also am following your configuration instructions. Don't understand why this is not working.

Expected behavior
The profile list should display and be pickable as per your instructions.

Environment

  • OS: [e.g. iOS] Windows 10
  • Browser: Chrome
  • Version: Latest (just updated today)
@tilfin
Copy link
Member

tilfin commented Nov 12, 2023

When the profile "dhitagger" is set, "devops-infra-tagger" is recognized as the base account. Therefore, the role "CDDOTagging" is not a switch target, but a condition of the role immediately after signing.

@towerbe
Copy link
Author

towerbe commented Nov 12, 2023 via email

@tilfin
Copy link
Member

tilfin commented Nov 13, 2023

@towerbe It is not possible to share exactly the same settings as ~/.aws/config.

Adding 'dhitagger' makes 'devops-infra-tagger' changed from a profile of Simple Configuration to an base account of Complex Configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants