AWS SDK for PHP: Error retrieving credentials from the instance profile metadata server

后端 未结 9 821
灰色年华
灰色年华 2020-12-04 21:18

I am trying to send SNS messeges to android through web api. Downloaded and installed the SDK from http://aws.amazon.com/developers/getting-started/php/

Got followin

9条回答
  •  一向
    一向 (楼主)
    2020-12-04 22:04

    You can try these lines:

    $credentials = new Aws\Credentials\Credentials('key' , 'secret-key');

    $s3 = new S3Client(['version' => 'latest','region' => 'ap-south-1','credentials'=>$credentials]);

提交回复
热议问题