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 !!