[Resource Type] - [BUG] - Cloudformation is not updating the Topic for the MSK Trigger on Lambda resource
Opened this issue · 0 comments
Name of the resource
AWS::Lambda::EventSourceMapping
Resource Name
No response
Issue Description
Issue description:
Updating 'Topics' under resource of type 'AWS::Lambda::EventSourceMapping' when the EventSource is Kafka (MSK) , does not update the topic on event source mapping but CloudFormation marks the update as successful.
Expected Behavior
Topic update should be reflected on Lambda triggers for kafka.
Observed Behavior
Only CloudFormation update getting successfull but updated topic not reflected in the lambda triggers for kafka
Test Cases
Replication steps:
- create even source mapping for kafka
HelloWorldFunctionSelfManagedKafkaEvent:
Type: AWS::Lambda::EventSourceMapping
Properties:
BatchSize: 10000
Enabled: true
FunctionName: !Ref HelloWorldFunction
StartingPosition: TRIM_HORIZON
Topics:
- topic1
SourceAccessConfigurations:
- Type: SASL_SCRAM_512_AUTH
URI: xxxxxxxxx
SelfManagedEventSource:
Endpoints:
KafkaBootstrapServers:
- xxxx:9092
2. Then, update topics value (topic2) and you can see cfn update getting successful, but topics change not reflected in lambda triggers console.
Other Details
No response