An aws-adfs spinoff that fits BYU's needs
Project description
Python script for CLI and SDK access to AWS via ADFS while requiring MFA access using https://duo.com/
Installation
Install Python 3.x using your preferred method.
See https://www.python.org/downloads/ for a windows installation method.
In linux you may be able to use apt, rpm or https://www.python.org/downloads/.
In Mac you can use homebrew, macports or https://www.python.org/downloads/.
Run pip3 install byu-awslogin
Usage
Run awslogin
Deploying changes
Make sure you have python 3 installed.
awslogin only works with python 3.
Enter your virtualenv using python 3.
Install twine by running pip install twine
Make sure you have a ‘~/.pypirc’ file with the following contents ``` index-servers = pypi
[pypi] username: byu-oit-appdev password: ``* Remove the old dist directoryrm -fr dist* Install the dependencies by runningpip install -r requirements.txt* Update the version in setup.py * Build the installable artifacts by runningpython setup.py sdist bdist_wheel* Send the new version to pypy by runningtwine upload dist/*`
TODO
(Josh) Alphabetize the account names and roles
Final login message after selecting role specifying you have been logged into this role on this account
gracefully handle the error case when the duo push is rejected
Add support for profiles
Add flags for account and role
Authenticate once for 8 hours and rerun awslogin to relogin
(Brett) Maybe add a select account then select role interactive method
Simplify the adfs authentication code
cache netid after subsequent logins ie default to last used
Make a handel-codepipeline CI/CD pipeline with automated tests. If they pass automatically deploy to pypi.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for byu_awslogin-0.9.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb2155a0b798f25480b9899948c696fe7752111d03c89609df3da5c0ea3dad1 |
|
MD5 | b410d8855cb901e89aeb4377b48d5ebb |
|
BLAKE2b-256 | 4e4f72b476e94668c342fd4271ba602dcaa67ab8d6cb70f3ab079b0cdd8dd7b5 |