Skip to content

aws-lambda-event-sources: Add new config feature for group id to SelfManagedKafkaEventSource #21734

@ghdoergeloh

Description

@ghdoergeloh

Describe the feature

Can we add the new option to set the group id ("SelfManagedKafkaEventSourceConfig" now also supported by Cloud Formation), to the SelfManagedKafkaEventSource?

Use Case

In our company, the group ID is used in ACLs to restrict access and for logging. A UUID is not very meaningful. It also has to be updated in the ACLs every time a change of the EventSourceMapping requires a redeployment.

Proposed Solution

Add a new optional argument to the SelfManagedKafkaEventSource constructor:

const kafkaSource = new SelfManagedKafkaEventSource({
  topic: '...',
  bootstrapServers: ['...','...'],
  groupId: '...' // 👈
});

Other Information

The new property might be too new. It is not yet there in CfnEventSourceMappingProps.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.38.1

Environment details (OS name and version, etc.)

Linux Ubuntu 22.04.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions