nathanlenz/s3fs-on-aws-beanstalk

How? "Put your S3 credentials into the Environment's container."

Closed this issue · 1 comments

How do you put your S3 credentials into the Environment's container?

Sorry for the newbie question, I've spent a few hours to find out how to make AWS_SECRET_KEY and AWS_ACCESS_KEY_ID available in the server variables. I could of course modify the php file 'create-s3fs-credentials-file.php' and put my credentials there directly, but that doesn't seem very safe.

Should I put the credentials in a .ebextensions/*.config file which I then keep out of my git repo?

Okay, found it. To make the Access Key ID and Secret Access Key available to PHP as global server variables, put them in the environment’s container. Go the console and select:

Elastic Beanstalk > [Environment name] > Configuration > Software Configuration > Environment Properties.

Use the Property Name and Property Value fields to provide your credentials.