This is a simple python script to get aws credentials in exchange for parameters. We can get aws creds for both authenticated and unauthenticated access.
The only requirement needed here would be AWS python SDK boto3 and python3.
pip install boto3
git clone https://github.com/0xAs1F/getCognitoCreds.git
cd getCognitoCreds/
python3 auth.py -t {id-token} -i {identity-pool-id} -u {user-pool-id} -r {aws-region}
python3 unauth.py -p {identity-pool-id} -r {aws-region}