aws / aws/aws-cli

`aws configure import` importing region

Open
#7,731 1 comment 0 reactions 0 assignees View on GitHub
configuration 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

The command is not meant to import the region when provided either in the imported csv nor with the `--region` flag.

The [CSVCredentialParser](https://github.com/aws/aws-cli/blob/v2/awscli/customizations/configure/importer.py#L103) class is explicitly written so that only `_USERNAME_HEADER`, `_AKID_HEADER` and `_SAK_HEADER` headers are considered fron the csv file, while the [ ConfigureCommand](https://github.com/aws/aws-cli/blob/v2/awscli/customizations/configure/configure.py#L57) class totally ignore the `--region` flag.

Since this command is meant to import a profile it would be usefull to be able to accept any aws profile attribute, at least via csv file.

### Use Case

I have a simple project with a pipeline where I need to run tree times `aws configure set` command for `aws_access_key_id`, `aws_secret_access_key` and `region` in every job that needs to run aws commands, moreover I need to set up tree different pipeline variables in any project that is related to aws.

### Proposed Solution

The imported csv files could provide any aws profile configuration value needed:
- Region
- Output format
- etc...

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CLI version used

aws-cli/2.7.12 Python/3.9.11 Linux/5.19.0-32-generic exe/x86_64.ubuntu.22 prompt/off

### Environment details (OS name and version, etc.)

Ubuntu 22.04.2 LTS 64-bit

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.