Search
-
Recent Posts
Tags
adwords amazon analytics api apple aws blog chrome chromium cloud Design dropbox ec2 email error facebook firefox google google-apps homebrew ipad javascript jQuery linux lion mac microsoft mysql osx os x paypal php plugin quicksilver raspberry pi scam social spam twitter ubuntu unix video windows woo wordpress
Tag Archives: sdk
Uncaught exception ‘CFCredentials_Exception’ with message ‘No credentials were provided. [solved]
If you’re using the Amazon Web Services (AWS) SDK (Software Developer Kit) version 1.5 “Allegro” for PHP you may have noticed an error like: Fatal error: Uncaught exception ‘CFCredentials_Exception’ with message ‘No credentials were provided. The SDK attempts to retrieve Instance Profile credentials from the EC2 Instance Metadata Service, but doing this requires the “default_cache_config” option to be set in the config.inc.php file or constructor. In order to cache the retrieved credentials.’ in #0 amazon-php-sdk/sdk-1.5.17.1/sdk.class.php:439 Stack trace: amazon-php-sdk/sdk-1.5.17.1/services/ec2.class.php(155): CFRuntime->__construct(Array) #1 amazon-php-sdk/sdk-1.5.17.1/_samples/cli-ec2_sorting_and_filtering.php(59): AmazonEC2->__construct() #2 {main} thrown in amazon-php-sdk/sdk-1.5.17.1/sdk.class.php on line 439 My solution was fairly simple – the PHP SDK download has a config-sample.inc.php file that you can copy to config.inc.php and then add your AWS key and secret key. After doing that you should be good to go.
Posted in Server Administration, Software, Tech Tips, Web Development
Tagged amazon, error, php, sdk
2 Comments