According to AWS PHP documentation , the credential file format is as follows:
[default] aws_access_key_id = YOUR_AWS_ACCESS_KEY_ID aws_secret_access_key = YOUR_AWS_SECRET_ACCESS_KEY
In your case, here is what I consider:
- firstly, the PHP library is trying to get credentials from the environment, but they arenβt ...
- Further, he tries to get them from the INI file, but you wrote the keys incorrectly, so ...
- finally, he tries to get them from the EC2 metadata server, but it looks like you are not working on an EC2 instance, so there is no metadata server and this attempt using curl is disabled.
This can be seen in the source code for the AWS PHP library .
The end result, which is bubbling up to you, is that step number 3 failed, but actually steps number 1, number 2, and number 3 have failed. So, I think that fixing is as simple as fixing key names in an INI file.
source share