aws / aws-sdk-php-zf2

ZF2 module for using the AWS SDK for PHP to interact with AWS services like S3, DynamoDB, SQS, EC2, etc.
http://aws.amazon.com/sdkforphp/
Apache License 2.0
103 stars 63 forks source link

Error retrieving credentials from the instance profile metadata server. #35

Closed Saeven closed 8 years ago

Saeven commented 8 years ago

Does this lib still work with the 3.x branch? In testing upgrades, despite the setup being done as documented in your readme, end up with errors as shown in the subject:

Error retrieving credentials from the instance profile metadata server.

Cheers! Alex

jeskew commented 8 years ago

You will need to provide credentials either through the environment (as documented here) or in the package config (as documented here).

cjyclaire commented 8 years ago

I'll close this issue due to ages, feel free to reopen it if you have further questions.

nishanthvallambatla commented 8 years ago

Hi, I am facing the same issue with aws-php-sdk version 3.18.x.

Error retrieving credentials from the instance profile metadata server. (Client error response [url] http://169.254.169.254/latest/meta-data/iam/security-credentials/ [status code] 404 [reason phrase] Not Found) [] []

Does anyone know why we get this? This call is made from one of AWS ec2 instances.