{"action":"created","issue":{"url":"https://api.github.com/repos/humanmade/aws-ses-wp-mail/issues/12","repository_url":"https://api.github.com/repos/humanmade/aws-ses-wp-mail","labels_url":"https://api.github.com/repos/humanmade/aws-ses-wp-mail/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/humanmade/aws-ses-wp-mail/issues/12/comments","events_url":"https://api.github.com/repos/humanmade/aws-ses-wp-mail/issues/12/events","html_url":"https://github.com/humanmade/aws-ses-wp-mail/issues/12","id":149901726,"number":12,"title":"Fails to use key & secret on local dev environment","user":{"login":"sanchothefat","id":23417,"avatar_url":"https://avatars.githubusercontent.com/u/23417?v=3","gravatar_id":"","url":"https://api.github.com/users/sanchothefat","html_url":"https://github.com/sanchothefat","followers_url":"https://api.github.com/users/sanchothefat/followers","following_url":"https://api.github.com/users/sanchothefat/following{/other_user}","gists_url":"https://api.github.com/users/sanchothefat/gists{/gist_id}","starred_url":"https://api.github.com/users/sanchothefat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanchothefat/subscriptions","organizations_url":"https://api.github.com/users/sanchothefat/orgs","repos_url":"https://api.github.com/users/sanchothefat/repos","events_url":"https://api.github.com/users/sanchothefat/events{/privacy}","received_events_url":"https://api.github.com/users/sanchothefat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-20T22:13:29Z","updated_at":"2016-04-22T10:04:24Z","closed_at":null,"body":"Simply specifying the key & secret doesn't work on a local dev environment. You have to either:\r\n\r\na) Have a credentials file in the web server users home directory `.aws/credentials`\r\n\r\nb) Pass a credentials object in the params:\r\n\r\n```php\r\n$params['credentials'] => array(\r\n  'key' => $this->key,\r\n  'secret' => $this->secret,\r\n  'token' => '' // Need to fetch a token to use email service, via StsClient\r\n);\r\n```\r\n\r\nQuestion is do we add code to fetch the token or rely solely on the credentials file approach? Right now the defines don't do anything."},"comment":{"url":"https://api.github.com/repos/humanmade/aws-ses-wp-mail/issues/comments/213365539","html_url":"https://github.com/humanmade/aws-ses-wp-mail/issues/12#issuecomment-213365539","issue_url":"https://api.github.com/repos/humanmade/aws-ses-wp-mail/issues/12","id":213365539,"user":{"login":"joehoyle","id":161683,"avatar_url":"https://avatars.githubusercontent.com/u/161683?v=3","gravatar_id":"","url":"https://api.github.com/users/joehoyle","html_url":"https://github.com/joehoyle","followers_url":"https://api.github.com/users/joehoyle/followers","following_url":"https://api.github.com/users/joehoyle/following{/other_user}","gists_url":"https://api.github.com/users/joehoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/joehoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehoyle/subscriptions","organizations_url":"https://api.github.com/users/joehoyle/orgs","repos_url":"https://api.github.com/users/joehoyle/repos","events_url":"https://api.github.com/users/joehoyle/events{/privacy}","received_events_url":"https://api.github.com/users/joehoyle/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T10:04:24Z","updated_at":"2016-04-22T10:04:24Z","body":"Hmm this is the first I've heard about this token, this isn't required for other AWS Services, is this something SES specific?"}}