Well, I use Laravel version 4.2 in my application, but I have some problems with AWS Package :/
I use this package https://github.com/aws/aws-sdk-php-laravel
I did everything that was described in README.md, but when I try send a image to S3 I receive this error
Error retrieving credentials from the instance profile metadata server. When you are not running inside of Amazon EC2, you must provide your AWS access key ID and secret access key in the "key" and "secret" options when creating a client or provide an instantiated Aws\Common\Credentials\CredentialsInterface object. ([curl] 7: Failed connect to 169.254.169.254:80; No route to host [url] 169.254.169.254/latest/meta-data/iam/security-credentials/)
I put the package in my composer.json
"aws/aws-sdk-php-laravel": "1.*"
And i send the command
composer update
I put in folder app/config/packages/aws/aws-sdk-php-laravel/config.php
<?php
return array(
'key' => '[key]',
'secret' => '[secret]',
'region' => 'us-east-1',
'config_file' => null,
);
And try call the method
AWS::get('s3')->putObject(array(
'Bucket' => ['bucket'],
'Key' => ['key'],
'SourceFile' => ['source']
));
But nothing work :(
Anyone know what's going on?