{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/9007","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/9007/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/9007/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/9007/events","html_url":"https://github.com/hashicorp/terraform/pull/9007","id":178752648,"number":9007,"title":"Update aws_lambda_permission doc for CloudWatch Events","user":{"login":"steve-jansen","id":3165077,"avatar_url":"https://avatars.githubusercontent.com/u/3165077?v=3","gravatar_id":"","url":"https://api.github.com/users/steve-jansen","html_url":"https://github.com/steve-jansen","followers_url":"https://api.github.com/users/steve-jansen/followers","following_url":"https://api.github.com/users/steve-jansen/following{/other_user}","gists_url":"https://api.github.com/users/steve-jansen/gists{/gist_id}","starred_url":"https://api.github.com/users/steve-jansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steve-jansen/subscriptions","organizations_url":"https://api.github.com/users/steve-jansen/orgs","repos_url":"https://api.github.com/users/steve-jansen/repos","events_url":"https://api.github.com/users/steve-jansen/events{/privacy}","received_events_url":"https://api.github.com/users/steve-jansen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-23T00:14:58Z","updated_at":"2016-09-23T08:00:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/9007","html_url":"https://github.com/hashicorp/terraform/pull/9007","diff_url":"https://github.com/hashicorp/terraform/pull/9007.diff","patch_url":"https://github.com/hashicorp/terraform/pull/9007.patch"},"body":"Based on support case with AWS, CloudWatch Events invoking Lambda should also specify the `source_arn`\r\n\r\nExample, the resulting policy needs to be like:\r\n```\r\n{\r\n    \"Condition\": {\r\n        \"ArnLike\": {\r\n            \"AWS:SourceArn\": \"arn:aws:events:us-east-1:0123456789:rule/my-cloudwatch-events-rule\"\r\n        }\r\n    },\r\n    \"Action\": \"lambda:InvokeFunction\",\r\n    \"Resource\": \"arn:aws:lambda:us-east-1:0123456789:function:my-lambda-function\",\r\n    \"Effect\": \"Allow\",\r\n    \"Principal\": {\r\n        \"Service\": \"events.amazonaws.com\"\r\n    },\r\n    \"Sid\": \"AllowMyCloudWatchEventRuleToCallMyLambda\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/249127870","html_url":"https://github.com/hashicorp/terraform/pull/9007#issuecomment-249127870","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/9007","id":249127870,"user":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T08:00:44Z","updated_at":"2016-09-23T08:00:44Z","body":"Hi @steve-jansen \r\n\r\nLGTM! Thanks for this addition to the docs :)\r\n\r\nPaul"}}
{"actor":{"display_login":"stack72"}}