Skip to content

Where to save AWS_ACCESS_ID and AWS_SECRET_KEY in elasticbean stalk application

0

Hi,

I am trying to access boto3 s3 session in my code which requires AWS_SECRET_KEY and AWS_ACCESS_ID. where should I save these values so that my code can access them without compromising security. I am using Flask application deployed through elasticbean stalk.

1 Answer
1
Accepted Answer

I didn't think it was necessary to set the access key if the application is hosted on Elastic BeanStalk.
I believe S3 can be accessed using IAM roles as shown in the following document.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-instanceprofile.html

EXPERT
answered 3 years ago
EXPERT
reviewed 3 years ago
EXPERT
reviewed 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.