{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless-graphql/issues/40","repository_url":"https://api.github.com/repos/serverless/serverless-graphql","labels_url":"https://api.github.com/repos/serverless/serverless-graphql/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless-graphql/issues/40/comments","events_url":"https://api.github.com/repos/serverless/serverless-graphql/issues/40/events","html_url":"https://github.com/serverless/serverless-graphql/issues/40","id":154723168,"number":40,"title":"Clarify AWS credentials requirements for local DB","user":{"login":"jesucarr","id":28097,"avatar_url":"https://avatars.githubusercontent.com/u/28097?v=3","gravatar_id":"","url":"https://api.github.com/users/jesucarr","html_url":"https://github.com/jesucarr","followers_url":"https://api.github.com/users/jesucarr/followers","following_url":"https://api.github.com/users/jesucarr/following{/other_user}","gists_url":"https://api.github.com/users/jesucarr/gists{/gist_id}","starred_url":"https://api.github.com/users/jesucarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesucarr/subscriptions","organizations_url":"https://api.github.com/users/jesucarr/orgs","repos_url":"https://api.github.com/users/jesucarr/repos","events_url":"https://api.github.com/users/jesucarr/events{/privacy}","received_events_url":"https://api.github.com/users/jesucarr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-13T14:21:53Z","updated_at":"2016-05-17T09:09:57Z","closed_at":null,"body":"It seems that the `setupdb` plugin needs the `[default]` profile in `~/.aws/credentials` to have the same `aws_access_key_id` and `aws_secret_access_key` as the profile in `admin.dev`.\r\n\r\nI tried setting `AWS_DEFAULT_PROFILE` to the profile in `admin.dev`, but didn't work.\r\n\r\nIs this a bug?\r\n\r\nHere the error I get:\r\n\r\n```\r\nmutation createUserTest { createUser ....\r\n\r\n\"errors\": [\r\n    {\r\n      \"message\": \"Missing credentials in config\",\r\n      \"originalError\": {\r\n        \"cause\": {\r\n          \"message\": \"Missing credentials in config\",\r\n          \"code\": \"CredentialsError\",\r\n          \"time\": \"2016-05-04T14:37:16.127Z\",\r\n          \"originalError\": {\r\n            \"message\": \"Could not load credentials from any providers\",\r\n            \"code\": \"CredentialsError\",\r\n            \"time\": \"2016-05-04T14:37:16.127Z\",\r\n            \"originalError\": {\r\n              \"message\": \"Connection timed out after 1000ms\",\r\n              \"code\": \"TimeoutError\",\r\n              \"time\": \"2016-05-04T14:37:16.127Z\"\r\n            }\r\n          }\r\n        },\r\n        \"isOperational\": true,\r\n        \"code\": \"CredentialsError\",\r\n        \"time\": \"2016-05-04T14:37:16.127Z\",\r\n        \"originalError\": {\r\n          \"message\": \"Could not load credentials from any providers\",\r\n          \"code\": \"CredentialsError\",\r\n          \"time\": \"2016-05-04T14:37:16.127Z\",\r\n          \"originalError\": {\r\n            \"message\": \"Connection timed out after 1000ms\",\r\n            \"code\": \"TimeoutError\",\r\n            \"time\": \"2016-05-04T14:37:16.127Z\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  ]\r\n```"},"comment":{"url":"https://api.github.com/repos/serverless/serverless-graphql/issues/comments/219661712","html_url":"https://github.com/serverless/serverless-graphql/issues/40#issuecomment-219661712","issue_url":"https://api.github.com/repos/serverless/serverless-graphql/issues/40","id":219661712,"user":{"login":"laardee","id":4726921,"avatar_url":"https://avatars.githubusercontent.com/u/4726921?v=3","gravatar_id":"","url":"https://api.github.com/users/laardee","html_url":"https://github.com/laardee","followers_url":"https://api.github.com/users/laardee/followers","following_url":"https://api.github.com/users/laardee/following{/other_user}","gists_url":"https://api.github.com/users/laardee/gists{/gist_id}","starred_url":"https://api.github.com/users/laardee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laardee/subscriptions","organizations_url":"https://api.github.com/users/laardee/orgs","repos_url":"https://api.github.com/users/laardee/repos","events_url":"https://api.github.com/users/laardee/events{/privacy}","received_events_url":"https://api.github.com/users/laardee/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T09:09:57Z","updated_at":"2016-05-17T09:09:57Z","body":"@Aciid, that \"AWS_TESTS_PROFILE\" profile is for \"tests\" stage that I used. If you haven't created a stage `tests` there should not be such a profile. When you create a new stage with `sls stage create` it appends new profile mapping to the `admin.env`, so I don't think you need to manually change that file at all if you use serverless framework to create/init project."}}