{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/1689","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/1689/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/1689/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/1689/events","html_url":"https://github.com/serverless/serverless/issues/1689","id":167982547,"number":1689,"title":"sls remove fails if IamRoleLambda has at least one policy attached","user":{"login":"codepreneur","id":3421858,"avatar_url":"https://avatars.githubusercontent.com/u/3421858?v=3","gravatar_id":"","url":"https://api.github.com/users/codepreneur","html_url":"https://github.com/codepreneur","followers_url":"https://api.github.com/users/codepreneur/followers","following_url":"https://api.github.com/users/codepreneur/following{/other_user}","gists_url":"https://api.github.com/users/codepreneur/gists{/gist_id}","starred_url":"https://api.github.com/users/codepreneur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codepreneur/subscriptions","organizations_url":"https://api.github.com/users/codepreneur/orgs","repos_url":"https://api.github.com/users/codepreneur/repos","events_url":"https://api.github.com/users/codepreneur/events{/privacy}","received_events_url":"https://api.github.com/users/codepreneur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T23:47:19Z","updated_at":"2016-07-29T04:48:47Z","closed_at":null,"body":"##### Serverless Framework Version: \r\n\r\n```\r\n1.0.0-alpha.2\r\n```\r\n\r\n##### Operating System: \r\n\r\n![image](https://cloud.githubusercontent.com/assets/3421858/16957931/5fe5d11e-4dd6-11e6-9d95-a5734cdee160.png)\r\n\r\n##### Expected Behavior:\r\n\r\nto completely remove sls project via cloudformation\r\n\r\n##### Actual Behavior:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3421858/17196428/84fee814-545c-11e6-922a-2490d671a48e.png)\r\n\r\nand: \r\n\r\n![image](https://cloud.githubusercontent.com/assets/3421858/17196455/ad4a4e12-545c-11e6-98cd-87a43e03ffdb.png)\r\n\r\nand then when you manually detach the policy and run `sls remove` again, it fails again, because the first deletion was only partial\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3421858/17196585/b22ddce0-545d-11e6-9695-a3b94ec2e510.png)\r\n\r\n\r\n\r\nExpected behaviour or a bug?. @pmuens ? @eahefnawy ?"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/236093767","html_url":"https://github.com/serverless/serverless/issues/1689#issuecomment-236093767","issue_url":"https://api.github.com/repos/serverless/serverless/issues/1689","id":236093767,"user":{"login":"pmuens","id":1606004,"avatar_url":"https://avatars.githubusercontent.com/u/1606004?v=3","gravatar_id":"","url":"https://api.github.com/users/pmuens","html_url":"https://github.com/pmuens","followers_url":"https://api.github.com/users/pmuens/followers","following_url":"https://api.github.com/users/pmuens/following{/other_user}","gists_url":"https://api.github.com/users/pmuens/gists{/gist_id}","starred_url":"https://api.github.com/users/pmuens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmuens/subscriptions","organizations_url":"https://api.github.com/users/pmuens/orgs","repos_url":"https://api.github.com/users/pmuens/repos","events_url":"https://api.github.com/users/pmuens/events{/privacy}","received_events_url":"https://api.github.com/users/pmuens/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T04:48:47Z","updated_at":"2016-07-29T04:48:47Z","body":"Hmm. This is a strange bug. We've removed the IamRoleArnLambda with a recent PR (do you run Serverless from the v1.0 branch).\r\n\r\nMight this cause the error @eahefnawy?"}}
{"actor":{"display_login":"pmuens"}}