설치

https://aws.amazon.com/ko/developers/getting-started/php/

  1. 샘플 다운로드

    git clone https://github.com/awslabs/aws-php-sample.git
    cd aws-php-sample
    CODE
  2. 컴포저로 종속성 설치

    php composer.phar install
    CODE
  3. ~/.aws/credentials 에 엑세스 키 설정

    ~/.aws/credentials

    [default]
    aws_access_key_id = YOUR_ACCESS_KEY_ID
    aws_secret_access_key = YOUR_SECRET_ACCESS_KEY
    CODE

    acccess key 생성과 크리덴셜은 하단의 Ref 자료 참고

  4. 샘플 실행

    php sample.php
    CODE


https://github.com/aws/aws-sdk-php.git


route53 api - http://docs.aws.amazon.com/aws-sdk-php/v3/api/api-route53-2013-04-01.html


php sample 


라라벨

config/aws.php 작성

<?php

return [
    // Bootstrap the configuration file with AWS specific features
    'includes' => ['_aws'],
    'version' => 'latest',
    'region' => env('AWS_REGION', 'us-west-1'),

    'credentials' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret'    => env('AWS_SECRET_ACCESS_KEY'),
    ],
];
CODE

.env 에 다음 내용 추가

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=ap-northeast-2
CODE


Trouble shooting

SSL certificate problem

GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)


Guzzle - cURL error 60: SSL certificate problem: unable to get local issuer certificate 문제 해결 를 참고해서 해결


Ref