I recently got a MacBook and I'm doing some programming with Eclipse. I need to use Amazon S3, so I needed to set my credentials as environment variables.
I typed vim ~/bash_profile and added the following lines:
export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXX
Then, I saved the changes, typed source ~/.bash_profile, and restarted my computer.
If I open Eclipse by clicking the icon, then Eclipse can't find the environment variables; but if I open it using the terminal, then Eclipse sees the variables and my code runs fine.
Why is that happening and how can I solve it?
Btw, I'm using High Sierra (10.13.6)