Skip to content

Support self_managed_kafka event source mapping #277

@kty1965

Description

@kty1965

Is your request related to a new offering from AWS?

available on terraform AWS provider self-managed-apache-kafka
.

Is your request related to a problem? Please describe.

Currently, we can't connect self managed kafka.
We need to add self_managed_event_source nested block in your module.

I submit this requested at #200

Describe the solution you'd like.

If self_managed_event_source value is set, we don't need to set event_source_arn.
Only add self_managed_event_source code block.

Describe alternatives you've considered.

code main.tf on aws_lambda_event_source_mapping.this

-   event_source_arn = each.value.event_source_arn 
+   event_source_arn = lookup(each.value, "event_source_arn", null)
...

+  dynamic "self_managed_event_source" {
+    for_each = lookup(each.value, "self_managed_event_source", [])
+    content {
+      endpoints = self_managed_event_source.value["endpoints"]
+    }
+  }

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions