-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
62 lines (53 loc) · 1.98 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
###########################
# PROVIDERS #
###########################
terraform {
required_providers {
confluent = {
source = "confluentinc/confluent"
version = "1.23.0"
}
}
}
provider "confluent" {
cloud_api_key = var.confluent_cloud_api_key
cloud_api_secret = var.confluent_cloud_api_secret
}
###########################
# MODULES #
###########################
module "environment" {
confluent_cloud_environment = var.confluent_cloud_environment
source = "./modules/environment"
}
module "kafkacluster" {
confluent_cloud_environment = module.environment.confluent_cloud_environment
confluent_cloud_provider = var.confluent_cloud_provider
confluent_cloud_region = var.confluent_cloud_region
source = "./modules/kafkacluster"
}
module "schemaregistry" {
confluent_cloud_environment = module.environment.confluent_cloud_environment
confluent_cloud_provider = var.confluent_cloud_provider
confluent_cloud_region = var.confluent_cloud_region
source = "./modules/schemaregistry"
}
module "topics" {
confluent_kafka_cluster = module.kafkacluster.confluent_kafka_cluster
confluent_kafka_cluster_key = module.kafkacluster.confluent_kafka_cluster_key
confluent_kafka_cluster_secret = module.kafkacluster.confluent_kafka_cluster_secret
source = "./modules/topics"
}
module "schema" {
confluent_cloud_environment = module.environment.confluent_cloud_environment
confluent_schema_registry = module.schemaregistry.confluent_schema_registry
confluent_schema_registry_key = module.schemaregistry.confluent_schema_registry_key
confluent_schema_registry_secret = module.schemaregistry.confluent_schema_registry_secret
source = "./modules/schema"
}
module "ksqldb" {
confluent_kafka_cluster = module.kafkacluster.confluent_kafka_cluster
confluent_schema_registry = module.schemaregistry.confluent_schema_registry
confluent_cloud_environment = module.environment.confluent_cloud_environment
source = "./modules/ksqldb"
}