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

后端 未结 9 844
灰色年华
灰色年华 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:06

    Here are the steps:

    1. Type cd ~ By this you will go into the home directory.
    2. mkdir .aws
    3. sudo vi .aws/credentials
    4. Write following lines and save the file.

      [default]
      aws_access_key_id = Your AWS Access Key
      
      aws_secret_access_key = Your AWS Secret Access Key
      

提交回复
热议问题