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

Enabling the configure command to set a different profile as the default profile. #8916

Open
1 of 2 tasks
Bue-von-hon opened this issue Sep 12, 2024 · 1 comment
Open
1 of 2 tasks
Labels
configure feature-request A feature should be added or improved. p2 This is a standard priority issue

Comments

@Bue-von-hon
Copy link

Bue-von-hon commented Sep 12, 2024

Describe the feature

It would be useful for users to be able to use another profile they already have defined as their default profile, so they don't have to set up duplicate keys.

Use Case

Because we use separate profiles, we always have to manually change the default profile for the programs we run in the IDE.

It would be very useful to be able to explicitly specify a default profile, so that we don't have to specify key values twice. We can use environment variables to specify a session-dependent profile, but this is a workaround.

Proposed Solution

[default]
region = ap-northeast-2
output = json
profile = some_other_profile

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

2.17.48

Environment details (OS name and version, etc.)

macOS(latest)

@Bue-von-hon Bue-von-hon added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 12, 2024
@tim-finnigan tim-finnigan self-assigned this Sep 13, 2024
@tim-finnigan
Copy link
Contributor

Thanks for the feature request. Using environment variables is probably your best bet. If assuming a role then you could use source_profile, documented here, which you could set using the aws configure set command.

Otherwise I think this feature request overlaps with #8002. We may want to consolidate these, and clarify the possible use cases/implementations that would not break any current functionality. I'm not sure that specifying another profile within the default profile is the best approach, but there may be better ways to extend configurations between profiles.

@tim-finnigan tim-finnigan added configure p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Sep 13, 2024
@tim-finnigan tim-finnigan removed their assignment Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configure feature-request A feature should be added or improved. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

2 participants