This repo has the script to export AWS credentials in json format to environment variables. This script is helpful for federated users with temporary credentials who need to reauthenticate often.
This scripts requires awscli to be installed.
- Clone this repo.
- Add the folder of this repo on environment variables.
- Save the json credentials in a file.
- Use the command
exporter your_json_file.json
to export the variables. - Voilà.
Some suggestions:
- Create the same script to run on PowerShell.
- Enhance the script to accept a clipboard json instead of a file.