I use elasticbeanstalk with multicontainer version and I have docker container with boto3 inside. I would like to assume role to save files on S3 using python.
Based on this question: Fetching AWS instance metadata from within Docker container?
urlopen('http://169.254.169.254/latest/meta-data/iam/instance-id-credentials/s3access').read().decode('utf-8')
returns 404.
I don't want use hardcoded credentials in my docker image. Is there a way to somehow assume role?