4

I'm using AWS Beanstalk which allows me to set environment properties in the backend for my application container and retrieve theme as shown below:

echo get_cfg_var('aws.access_key');
echo get_cfg_var('aws.secret_key');
echo get_cfg_var('aws.param1');
echo get_cfg_var('aws.param2');

I'd like to set up a similar environment property locally, so that my password never reach my repository (I'm using git) - what is the best way to do this? php_ini? httpd.conf? How would I add the variable param1 = 'password';?

Cheers!

2
  • You should consider using SSH and ssh-agent. Commented Apr 2, 2012 at 16:23
  • by the way- this is for a mysql password Commented Apr 2, 2012 at 16:25

1 Answer 1

2

in your php.ini add the lines.

aws.param1=whatever
aws.param2=whatever
Sign up to request clarification or add additional context in comments.

1 Comment

I added this to the bottom of my php.ini, nothing happens when i do echo get_cfg_var('aws.param1');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.