# Lambda Kinesis stream event mapping

**URL:** <https://forum.ansible.com/t/lambda-kinesis-stream-event-mapping/22886>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [October 26, 2016, 2:16am UTC](https://forum.ansible.com/t/lambda-kinesis-stream-event-mapping/22886 "2016-10-26T02:16:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_K](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@Bharat\_K](https://forum.ansible.com/u/Bharat_K)\
**Post date:** [October 26, 2016, 2:16am UTC](https://forum.ansible.com/t/lambda-kinesis-stream-event-mapping/22886/1 "2016-10-26T02:16:55Z")

</div>

I am creating lambda trigger for kinesis stream however getting below error.

“msg”: “Module alias error: internal error: required and default are mutually exclusive for event\_source”

Code:

- hosts: control

gather\_facts: no

vars:

state: present

function\_names: from\_Kinesis

tasks:

- name: Kinesis stream event mapping

lambda\_event:

state: “{{ state | default(‘present’) }}”

event\_source: stream

function\_name: “{{ function\_names }}”

source\_params:

source\_arn: arn:aws:kinesis:us-west-2:xxxxxxxxxxx:stream/StockTradeStream

enabled: True

batch\_size: 100

starting\_position: TRIM\_HORIZON

- name: show source event config

debug: var=lambda\_stream\_events

Appreciate your input.

Thanks !!
