You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Event Source Mappings](https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html) to trigger your Lambda function by DynamoDb,
116
116
Kinesis and SQS can be declared inline. The module will add the required read-only IAM permissions depending on the event source type to
117
-
the function role automatically. In addition, permissions to send discarded batches to SNS or SQS will be added automatically, if `destination_arn_on_failure` is configured.
117
+
the function role automatically (including support for [dedicated-throughput consumers](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-configure) using enhanced fan-out).
118
+
119
+
Permissions to send discarded batches to SNS or SQS will be added automatically, if `destination_arn_on_failure` is configured.
118
120
119
121
see [examples](examples/with-event-source-mappings) for details
120
122
123
+
#### DynamoDb
124
+
121
125
```hcl
122
126
module "lambda" {
123
127
// see above
@@ -155,6 +159,27 @@ module "lambda" {
155
159
}
156
160
```
157
161
162
+
#### Kinesis
163
+
164
+
```hcl
165
+
resource "aws_kinesis_stream_consumer" "this" {
166
+
name = module.lambda.function_name
167
+
stream_arn = aws_kinesis_stream.stream_2.arn
168
+
}
169
+
170
+
module "lambda" {
171
+
// see above
172
+
173
+
event_source_mappings = {
174
+
stream_1 = {
175
+
// To use a dedicated-throughput consumer with enhanced fan-out, specify the consumer's ARN instead of the stream's ARN, see https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-configure
[SNS Topic Subscriptions](https://www.terraform.io/docs/providers/aws/r/sns_topic_subscription.html) to trigger your Lambda function by SNS can de declared inline.
[Event Source Mappings](https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html) to trigger your Lambda function by DynamoDb,
116
116
Kinesis and SQS can be declared inline. The module will add the required read-only IAM permissions depending on the event source type to
117
-
the function role automatically. In addition, permissions to send discarded batches to SNS or SQS will be added automatically, if `destination_arn_on_failure` is configured.
117
+
the function role automatically (including support for [dedicated-throughput consumers](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-configure) using enhanced fan-out).
118
+
119
+
Permissions to send discarded batches to SNS or SQS will be added automatically, if `destination_arn_on_failure` is configured.
118
120
119
121
see [examples](examples/with-event-source-mappings) for details
120
122
123
+
#### DynamoDb
124
+
121
125
```hcl
122
126
module "lambda" {
123
127
// see above
@@ -155,6 +159,27 @@ module "lambda" {
155
159
}
156
160
```
157
161
162
+
#### Kinesis
163
+
164
+
```hcl
165
+
resource "aws_kinesis_stream_consumer" "this" {
166
+
name = module.lambda.function_name
167
+
stream_arn = aws_kinesis_stream.stream_2.arn
168
+
}
169
+
170
+
module "lambda" {
171
+
// see above
172
+
173
+
event_source_mappings = {
174
+
stream_1 = {
175
+
// To use a dedicated-throughput consumer with enhanced fan-out, specify the consumer's ARN instead of the stream's ARN, see https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-configure
[SNS Topic Subscriptions](https://www.terraform.io/docs/providers/aws/r/sns_topic_subscription.html) to trigger your Lambda function by SNS can de declared inline.
// To use a dedicated-throughput consumer with enhanced fan-out, specify the consumer's ARN instead of the stream's ARN, see https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-configure
0 commit comments