extend kafka_connect example with standalone kafka integration
+# Kafka service
+resource "aiven_service" "kafka-service1" {
+ project = aiven_project.kafka-con-project1.project
+ cloud_name = "google-europe-west1"
+ plan = "business-4"
+ service_name = "kafka-service1"
+ service_type = "kafka"
+ maintenance_window_dow = "monday"
+ maintenance_window_time = "10:00:00"
+
+ kafka_user_config {
+ kafka_version = "2.4"
+ }
+}
+
# Kafka connect service
resource "aiven_service" "kafka_connect1" {
project = aiven_project.kafka-con-project1.project
@@ -18,3 +33,19 @@ resource "aiven_service" "kafka_connect1" {
}
}
}
+
+// Kafka connect service integration
+resource "aiven_service_integration" "i1" {
+ project = aiven_project.kafka-con-project1.project
+ integration_type = "kafka_connect"
+ source_service_name = aiven_service.kafka-service1.service_name
+ destination_service_name = aiven_service.kafka_connect1.service_name
+
+ kafka_connect_user_config {
+ kafka_connect {
+ group_id = "connect"
+ status_storage_topic = "__connect_status"
+ offset_storage_topic = "__connect_offsets"
+ }
+ }
+}
\ No newline at end of file
