aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
[Resource Type] - [BUG] - Cloudformation is not updating the Topic for the MSK Trigger on Lambda resource
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### 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.
Related doc - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics
### 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:
1. 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_
Contributor guide
Assessment
This issue has not been assessed yet.