https://github.com/qoomon/aws-configure
A CLI to configure AWS named profiles in ~/.aws/config and ~/.aws/credentials files
https://github.com/qoomon/aws-configure
aws cli configure profiles
Last synced: 11 months ago
JSON representation
A CLI to configure AWS named profiles in ~/.aws/config and ~/.aws/credentials files
- Host: GitHub
- URL: https://github.com/qoomon/aws-configure
- Owner: qoomon
- Created: 2019-09-17T16:12:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T12:11:21.000Z (about 1 year ago)
- Last Synced: 2025-06-19T03:24:37.392Z (about 1 year ago)
- Topics: aws, cli, configure, profiles
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-configure
[](https://pypi.org/project/aws-configure/)
A CLI to configure AWS named profiles in `~/.aws/config` and `~/.aws/credentials files`
## Usage
```
list profiles:
aws-configure list
set profile options:
aws-configure set [--profile/-p ] []
--profile/-p : select profile ['default']
: key=value pairs e.g. 'region=eu-central-1' 'source_profile=default'
--empty/-e : empty all profile options before setting new options
--empty-config : empty profile config options before setting
--empty-credentials : empty profile credentials options before setting
get profile options:
aws-configure get [--profile/-p ] []
--profile/-p : select profile ['default']
: option key e.g. 'region' 'source_profile'
delete profile:
aws-configure delete [--profile/-p ] [--config] [--credentials]
--profile/-p : select profile ['default']
--config : delete only profile config in '~/.aws/config'
--credentials : delete only profile credentials in '~/.aws/credentials'
print help
aws-configure help
```
### Bash Helper Scripts
#### Export Credentials To Current Bash Session
```
function aws-export-credentials {
local profile="$1"
{
read AWS_ACCESS_KEY_ID
read AWS_SECRET_ACCESS_KEY
read AWS_SESSION_TOKEN
} <<< $(
aws-configure get -p "$profile" \
aws_access_key_id \
aws_secret_access_key \
aws_session_token
)
export AWS_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY
export AWS_SESSION_TOKEN
}
```
## Setup dev environment
#### Install Dev Dependencies
`pip3 install -r requirements.txt`
`pip3 install -r requirements-dev.txt`
#### Create Package
`python3 setup.py sdist bdist_wheel`
#### Local Install
`pip3 install --force-reinstall --no-deps dist/aws_configure-*-py3-none-any.whl`
#### Deploy to PiPy
`twine upload dist/*`