{"action":"opened","issue":{"url":"https://api.github.com/repos/apex/apex/issues/443","repository_url":"https://api.github.com/repos/apex/apex","labels_url":"https://api.github.com/repos/apex/apex/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/apex/apex/issues/443/comments","events_url":"https://api.github.com/repos/apex/apex/issues/443/events","html_url":"https://github.com/apex/apex/issues/443","id":159347441,"number":443,"title":"Cannot destroy API Gateway or Lambda when use both","user":{"login":"elct9620","id":887984,"avatar_url":"https://avatars.githubusercontent.com/u/887984?v=3","gravatar_id":"","url":"https://api.github.com/users/elct9620","html_url":"https://github.com/elct9620","followers_url":"https://api.github.com/users/elct9620/followers","following_url":"https://api.github.com/users/elct9620/following{/other_user}","gists_url":"https://api.github.com/users/elct9620/gists{/gist_id}","starred_url":"https://api.github.com/users/elct9620/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elct9620/subscriptions","organizations_url":"https://api.github.com/users/elct9620/orgs","repos_url":"https://api.github.com/users/elct9620/repos","events_url":"https://api.github.com/users/elct9620/events{/privacy}","received_events_url":"https://api.github.com/users/elct9620/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-09T07:52:03Z","updated_at":"2016-06-09T07:52:03Z","closed_at":null,"body":"```\r\nOS: OSX 10.11\r\nApex Version: 0.9.0\r\n```\r\n\r\nI create a test project with terraform so I can setup API Gateway and Lambda very easy.\r\nBut when I finished my practice, I cannot clean up both.\r\n\r\n### Case 1\r\n\r\n1. run `apex delete`\r\n2. run `apex infra destroy`\r\n\r\nNow, terraform will failed because no lambda function information.\r\n\r\n### Case 2\r\n\r\n1. run `apex infra destroy`\r\n2. run `apex delete`\r\n\r\nI got error message `error opening function xxx: Role: zero value`\r\n\r\nSo I need to remove one of API Gateway or Lambda by myself.\r\n\r\nIs there have any way to improve or fix this problem?\r\n"}}
{"actor":{"display_login":"elct9620"}}