My dockerFile looks like
FROM python:3.9
RUN mkdir /app
COPY aws_spot_connect_test.py /app/aws_spot_connect.py
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ["sleep","1800"]
I want make actions on my aws account but withRole I don't want enter ACCESS/_KEY and SECRET to my container since it's not secure.
I run the docker with docker run -it --entrypoint /bin/bash adi20022023:v2
I wanted make manually the actions I should do in the script.
I created a role which is a trust-relationship to itself.
I set it as as env param.
export ROLE_ARN=xxxxx
But when I tried aws sts get-caller-identity
or I try assume the role I can't because of
Unable to locate credentials
What can I do in order make aws actions without enter my ACCESS_KEY and SECRET_ACCESS_KEY ?