provider/aws: Doc cloudwatch SNS and lambda perms

Documentation for `aws_cloudwatch_event_target` to warn that in order to be

able to have your AWS Lambda function or SNS topic invoked by a CloudWatch

Events rule, you must setup the right permissions

using `aws_lambda_permission` or `aws_sns_topic.policy`
This commit is contained in:
Hector Rivas Gandara 2016-04-06 16:28:24 +01:00 committed by Paul Stack
parent 84b913bc5d
commit ad761f338d
1 changed files with 6 additions and 1 deletions

View File

@ -46,6 +46,11 @@ resource "aws_kinesis_stream" "test_stream" {
## Argument Reference
-> **Note:** `input` and `input_path` are mutually exclusive options.
-> **Note:** In order to be able to have your AWS Lambda function or
SNS topic invoked by a CloudWatch Events rule, you must setup the right permissions
using [`aws_lambda_permission`](https://www.terraform.io/docs/providers/aws/r/lambda_permission.html)
or [`aws_sns_topic.policy`](https://www.terraform.io/docs/providers/aws/r/sns_topic.html#policy).
More info here [here](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/EventsResourceBasedPermissions.html).
The following arguments are supported: