{"action":"created","issue":{"url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2483","repository_url":"https://api.github.com/repos/capitalone/cloud-custodian","labels_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2483/labels{/name}","comments_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2483/comments","events_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2483/events","html_url":"https://github.com/capitalone/cloud-custodian/issues/2483","id":329948869,"node_id":"MDU6SXNzdWUzMjk5NDg4Njk=","number":2483,"title":"KeyError for a cloudtrail policy","user":{"login":"ctippur","id":2225047,"node_id":"MDQ6VXNlcjIyMjUwNDc=","avatar_url":"https://avatars3.githubusercontent.com/u/2225047?v=4","gravatar_id":"","url":"https://api.github.com/users/ctippur","html_url":"https://github.com/ctippur","followers_url":"https://api.github.com/users/ctippur/followers","following_url":"https://api.github.com/users/ctippur/following{/other_user}","gists_url":"https://api.github.com/users/ctippur/gists{/gist_id}","starred_url":"https://api.github.com/users/ctippur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctippur/subscriptions","organizations_url":"https://api.github.com/users/ctippur/orgs","repos_url":"https://api.github.com/users/ctippur/repos","events_url":"https://api.github.com/users/ctippur/events{/privacy}","received_events_url":"https://api.github.com/users/ctippur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-06T16:45:46Z","updated_at":"2018-06-08T19:58:18Z","closed_at":null,"author_association":"NONE","body":"Use case: A trail has not been created for a region, or logging is turned off for a trail.\r\n```yaml\r\npolicies:\r\n- name: test\r\n  resource: cloudtrail\r\n  filters:\r\n  - not:\r\n    - type: value\r\n      key: HomeRegion\r\n      op: regex\r\n      value: '.*-.*-.*'\r\n```\r\n\r\nI am getting an error:\r\n```\r\nFile \"/Users/shekartippur/PycharmProjects/cloudcustodian/venv/lib/python3.6/site-packages/c7n/filters/core.py\", line 256, in <dictcomp>\r\n    resource_map = {r[resource_type.id]: r for r in resources}\r\nKeyError: 'TrailArn'\r\n```\r\n\r\nCouple of questions:\r\n1. Is this the right approach for my use case?\r\n2. Why is it looking for TrailArn key?\r\n3. Could there be a typo as resources.json has TrailARN (Caps ARN)?"},"comment":{"url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/comments/395873058","html_url":"https://github.com/capitalone/cloud-custodian/issues/2483#issuecomment-395873058","issue_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2483","id":395873058,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTg3MzA1OA==","user":{"login":"thisisshi","id":4026535,"node_id":"MDQ6VXNlcjQwMjY1MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/4026535?v=4","gravatar_id":"","url":"https://api.github.com/users/thisisshi","html_url":"https://github.com/thisisshi","followers_url":"https://api.github.com/users/thisisshi/followers","following_url":"https://api.github.com/users/thisisshi/following{/other_user}","gists_url":"https://api.github.com/users/thisisshi/gists{/gist_id}","starred_url":"https://api.github.com/users/thisisshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thisisshi/subscriptions","organizations_url":"https://api.github.com/users/thisisshi/orgs","repos_url":"https://api.github.com/users/thisisshi/repos","events_url":"https://api.github.com/users/thisisshi/events{/privacy}","received_events_url":"https://api.github.com/users/thisisshi/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T19:58:18Z","updated_at":"2018-06-08T19:58:18Z","author_association":"COLLABORATOR","body":"This is a bug, I'll be fixing it shortly"}}
{"actor":{"display_login":"thisisshi"}}