aws / aws/aws-cli

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

Open
#8,916 1 comment 0 reactions 0 assignees View on GitHub
configure feature-request p2
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### 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

- [x] 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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.