{"action":"created","issue":{"url":"https://api.github.com/repos/aws/awsmobile-cli/issues/141","repository_url":"https://api.github.com/repos/aws/awsmobile-cli","labels_url":"https://api.github.com/repos/aws/awsmobile-cli/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/aws/awsmobile-cli/issues/141/comments","events_url":"https://api.github.com/repos/aws/awsmobile-cli/issues/141/events","html_url":"https://github.com/aws/awsmobile-cli/issues/141","id":328693745,"node_id":"MDU6SXNzdWUzMjg2OTM3NDU=","number":141,"title":"Set the awsRegion attribute of appsync/dataSources with parameter or argument.","user":{"login":"komushi","id":3174130,"node_id":"MDQ6VXNlcjMxNzQxMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/3174130?v=4","gravatar_id":"","url":"https://api.github.com/users/komushi","html_url":"https://github.com/komushi","followers_url":"https://api.github.com/users/komushi/followers","following_url":"https://api.github.com/users/komushi/following{/other_user}","gists_url":"https://api.github.com/users/komushi/gists{/gist_id}","starred_url":"https://api.github.com/users/komushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komushi/subscriptions","organizations_url":"https://api.github.com/users/komushi/orgs","repos_url":"https://api.github.com/users/komushi/repos","events_url":"https://api.github.com/users/komushi/events{/privacy}","received_events_url":"https://api.github.com/users/komushi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-02T00:09:19Z","updated_at":"2018-06-04T17:59:28Z","closed_at":null,"author_association":"NONE","body":"There is a mandatory attribute 'awsRegion' in the file of 'awsmobilejs/backend/appsync/dataSources.json'.\r\nBy invoking 'awsmobile init' the appsync backend including the dataSources will be created. I would like the region attribute being specified with the value from 'awsmobile configure'.\r\n\r\nWondering whether this could be achieved by configuration like below.\r\n\r\n```\r\n{\r\n    \"dataSources\": [\r\n        {\r\n            \"name\": \"MyTable\",\r\n            \"description\": null,\r\n            \"type\": \"AMAZON_DYNAMODB\",\r\n            \"serviceRoleArn\": \"{managed-by-awsmobile-cli}\",\r\n            \"dynamodbConfig\": {\r\n                \"tableName\": \"MyTable-{suffix}\",\r\n                \"awsRegion\": \"{configured_region}\",\r\n                \"useCallerCredentials\": false\r\n            }\r\n        }\r\n    ],\r\n....\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/awsmobile-cli/issues/comments/394444212","html_url":"https://github.com/aws/awsmobile-cli/issues/141#issuecomment-394444212","issue_url":"https://api.github.com/repos/aws/awsmobile-cli/issues/141","id":394444212,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDQ0NDIxMg==","user":{"login":"UnleashedMind","id":6025263,"node_id":"MDQ6VXNlcjYwMjUyNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6025263?v=4","gravatar_id":"","url":"https://api.github.com/users/UnleashedMind","html_url":"https://github.com/UnleashedMind","followers_url":"https://api.github.com/users/UnleashedMind/followers","following_url":"https://api.github.com/users/UnleashedMind/following{/other_user}","gists_url":"https://api.github.com/users/UnleashedMind/gists{/gist_id}","starred_url":"https://api.github.com/users/UnleashedMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnleashedMind/subscriptions","organizations_url":"https://api.github.com/users/UnleashedMind/orgs","repos_url":"https://api.github.com/users/UnleashedMind/repos","events_url":"https://api.github.com/users/UnleashedMind/events{/privacy}","received_events_url":"https://api.github.com/users/UnleashedMind/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T17:59:28Z","updated_at":"2018-06-04T17:59:28Z","author_association":"COLLABORATOR","body":"Thanks for the feedback, I will mark this as a feature request. \r\n"}}
{"actor":{"display_login":"UnleashedMind"}}