{"action":"created","issue":{"url":"https://api.github.com/repos/arc-repos/arc-workflows/issues/120","repository_url":"https://api.github.com/repos/arc-repos/arc-workflows","labels_url":"https://api.github.com/repos/arc-repos/arc-workflows/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/arc-repos/arc-workflows/issues/120/comments","events_url":"https://api.github.com/repos/arc-repos/arc-workflows/issues/120/events","html_url":"https://github.com/arc-repos/arc-workflows/issues/120","id":346795014,"node_id":"MDU6SXNzdWUzNDY3OTUwMTQ=","number":120,"title":"ability to automate discreet iam policies","user":{"login":"brianleroux","id":990,"node_id":"MDQ6VXNlcjk5MA==","avatar_url":"https://avatars3.githubusercontent.com/u/990?v=4","gravatar_id":"","url":"https://api.github.com/users/brianleroux","html_url":"https://github.com/brianleroux","followers_url":"https://api.github.com/users/brianleroux/followers","following_url":"https://api.github.com/users/brianleroux/following{/other_user}","gists_url":"https://api.github.com/users/brianleroux/gists{/gist_id}","starred_url":"https://api.github.com/users/brianleroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianleroux/subscriptions","organizations_url":"https://api.github.com/users/brianleroux/orgs","repos_url":"https://api.github.com/users/brianleroux/repos","events_url":"https://api.github.com/users/brianleroux/events{/privacy}","received_events_url":"https://api.github.com/users/brianleroux/received_events","type":"User","site_admin":false},"labels":[{"id":650846893,"node_id":"MDU6TGFiZWw2NTA4NDY4OTM=","url":"https://api.github.com/repos/arc-repos/arc-workflows/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T22:36:49Z","updated_at":"2018-10-20T05:35:00Z","closed_at":"2018-10-20T05:35:00Z","author_association":"CONTRIBUTOR","body":"Note: WIP!\r\n\r\nCurrently `arc-create` creates a role (named `arc-role`) which gives broad access to Dynamo, S3 and SNS. \r\n\r\nThis is a great default and has worked wonderfully for a very long time. \r\n\r\nHowever, it should be possible to grant or limit permissions on a lambda by lambda basis. For example, maybe you want to lock a lambda down to a policy that is read only or perhaps you want to opt a lambda into new permissions for another AWS service such as SES.\r\n\r\n- This should be an additive change (non breaking)\r\n- We will want this to be a standalone workflow command for reading, verifying and synchronizing policies\r\n- Security is important: this cannot be unclear in any way\r\n- Custom roles are defined in `src/iam` such as `src/iam/role-name.json`\r\n- Roles are applied using `.arc-config`\r\n- `npx iam` lists lambdas and their associated roles (or missing roles)\r\n- `npx iam apply` ensures everything is in sync\r\n\r\nExample `.arc-config`\r\n\r\n```\r\n@aws\r\ntimeout 30000\r\nmemory 512\r\nrole my-custom-role # expects src/iam/my-custom-role.json to exist\r\n```"},"comment":{"url":"https://api.github.com/repos/arc-repos/arc-workflows/issues/comments/431551144","html_url":"https://github.com/arc-repos/arc-workflows/issues/120#issuecomment-431551144","issue_url":"https://api.github.com/repos/arc-repos/arc-workflows/issues/120","id":431551144,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU1MTE0NA==","user":{"login":"brianleroux","id":990,"node_id":"MDQ6VXNlcjk5MA==","avatar_url":"https://avatars3.githubusercontent.com/u/990?v=4","gravatar_id":"","url":"https://api.github.com/users/brianleroux","html_url":"https://github.com/brianleroux","followers_url":"https://api.github.com/users/brianleroux/followers","following_url":"https://api.github.com/users/brianleroux/following{/other_user}","gists_url":"https://api.github.com/users/brianleroux/gists{/gist_id}","starred_url":"https://api.github.com/users/brianleroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianleroux/subscriptions","organizations_url":"https://api.github.com/users/brianleroux/orgs","repos_url":"https://api.github.com/users/brianleroux/repos","events_url":"https://api.github.com/users/brianleroux/events{/privacy}","received_events_url":"https://api.github.com/users/brianleroux/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T05:35:00Z","updated_at":"2018-10-20T05:35:00Z","author_association":"CONTRIBUTOR","body":"shipped! as `npx audit`"}}
{"actor":{"display_login":"brianleroux"}}