Good luck out there lol. I don't use AWS so I can't speak to that specifically. I could be misinterpreting, but you want to set up environment variables (AWS_USR, AWS_TOKEN) and make them available to your container? If so the you'll have something like:
docker run -d -e AWS_USR=some-user -e AWS_TOKEN=some-token your_image_name
But it almost sounds like your credentials aren't valid. Try running
docker run -it --entry point /bin/bash -e AWS_USR=some-user -e AWS_TOKEN=some-token your_image_name
Then run your script with bash -c my_script.sh. That might point you towards what the issue is
Good look. Thanks for the clarification. I got it working locally I was able to to use a docker-compose to copy all of my .aws credentials directory over.
Now if I could get this shyt to work in the aws cloud I'd be good to go.