Skip to content

Commit

Permalink
kafka-shared: moved iam to dedicated TF module (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbuliarca authored Feb 16, 2024
1 parent 7059cfb commit de8fefb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions dev-aws/kafka-shared/iam/__env.tf
30 changes: 15 additions & 15 deletions dev-aws/kafka-shared/iam.tf → dev-aws/kafka-shared/iam/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ resource "kafka_topic" "iam_cerbos_audit_v1" {
}

module "iam_cerbos_audit_indexer" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_cerbos_audit_v1.name) : "indexer-iam-cerbos-audit-v1" }
cert_common_name = "auth/iam-cerbos-audit-indexer"
}

module "iam_cerbos_audit_exporter" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_cerbos_audit_v1.name) : "exporter-iam-cerbos-audit-v1" }
cert_common_name = "auth/iam-cerbos-audit-exporter"
}
Expand All @@ -43,19 +43,19 @@ resource "kafka_topic" "iam_credentials_v1" {
}

module "iam_credentials_api" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
produce_topics = [kafka_topic.iam_credentials_v1.name]
cert_common_name = "auth-customer/credentials-api"
}

module "iam_credentials_indexer" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_credentials_v1.name) : "indexer-iam-credentials-v1" }
cert_common_name = "auth-customer/iam-credentials-v1-indexer"
}

module "iam_customer_auth_provider" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
produce_topics = [kafka_topic.iam_credentials_v1.name]
cert_common_name = "clubhouse/auth-provider"
}
Expand All @@ -77,26 +77,26 @@ resource "kafka_topic" "iam_dpd_v1" {
}

module "iam_dpd_mapper" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
produce_topics = [kafka_topic.iam_dpd_v1.name]
consume_topics = { (kafka_topic.iam_credentials_v1.name) : "iam.dpd-mapper" }
cert_common_name = "auth-customer/dpd-mapper"
}

module "iam_dpd_di_kafka_source_customer_login_succeeded" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_dpd_v1.name) : "iam.di-kafka-source-customer-login-succeeded" }
cert_common_name = "auth-customer/di-kafka-source-customer-login-succeeded"
}

module "iam_dpd_di_kafka_source_customer_login_failed" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_dpd_v1.name) : "iam.di-kafka-source-customer-login-failed" }
cert_common_name = "auth-customer/di-kafka-source-customer-login-failed"
}

module "iam_dpd_di_kafka_source_customer_password_reset_failed" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_dpd_v1.name) : "iam.di-kafka-source-customer-password-reset-failed" }
cert_common_name = "auth-customer/di-kafka-source-customer-password-reset-failed"
}
Expand All @@ -119,39 +119,39 @@ resource "kafka_topic" "iam_identitydb_v1" {
}

module "iam_identitydb_indexer" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_identitydb_v1.name) : "iam.identitydb-indexer" }
cert_common_name = "auth/iam-identitydb-indexer"
}

module "iam_jwks_publisher" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
produce_topics = [kafka_topic.iam_identitydb_v1.name]
cert_common_name = "auth/iam-jwks-publisher"
}

module "iam_identitydb_event_forwarder" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
produce_topics = [kafka_topic.iam_identitydb_v1.name]
consume_topics = { (kafka_topic.iam_revoked_v1.name) : "iam.identitydb-event-forwarder" }
cert_common_name = "auth/iam-identitydb-event-forwarder"
}

module "iam_identitydb_snapshotter" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.iam_identitydb_v1.name) : "iam-identitydb-snapshotter" }
cert_common_name = "auth/iam-identitydb-snapshotter"
}

module "iam_identity_api" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
produce_topics = [kafka_topic.iam_revoked_v1.name]
consume_topics = { (kafka_topic.iam_identitydb_v1.name) : "iam-identity-api" }
cert_common_name = "auth/iam-identity-api"
}

module "iam_policy_decision_api" {
source = "../../modules/tls-app"
source = "../../../modules/tls-app"
cert_common_name = "auth/iam-policy-decision-api"
produce_topics = [kafka_topic.iam_cerbos_audit_v1.name]
consume_topics = { (kafka_topic.iam_identitydb_v1.name) : "iam-policy-decision-api" }
Expand Down

0 comments on commit de8fefb

Please sign in to comment.