-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dev-Enablement] Create pilotcd topic (#736)
### Summary - Introduce dev-enablement directory - Introduce topic for pilotcd and a producer and consumer. - I havent created a new team for a while so may have missed something?
- Loading branch information
1 parent
66d3d02
commit 2648906
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
terraform { | ||
backend "s3" { | ||
bucket = "uw-dev-pubsub-tf-applier-state" | ||
key = "dev-aws/kafka-shared-msk-dev-enablement" | ||
region = "eu-west-1" | ||
encrypt = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../__env.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
resource "kafka_topic" "dev_enablement_pilotcd_v1" { | ||
config = { | ||
"cleanup.policy" = "delete" | ||
"compression.type" = "zstd" | ||
# keep data in primary storage for 1 day | ||
"local.retention.ms" = "86400000" | ||
# enable remote storage | ||
"remote.storage.enable" = "true" | ||
# keep data for 7 days | ||
"retention.ms" = "604800000" | ||
} | ||
name = "dev-enablement.pilotcd.v1" | ||
partitions = 5 | ||
replication_factor = 3 | ||
} | ||
|
||
module "dev_enablement_pilotcd_api" { | ||
source = "../../../modules/tls-app" | ||
produce_topics = [kafka_topic.dev_enablement_pilotcd_v1.name] | ||
cert_common_name = "dev_enablement/pilotcd_api" | ||
} | ||
|
||
module "dev_enablement_pilotcd_worker" { | ||
source = "../../../modules/tls-app" | ||
consume_topics = [kafka_topic.dev_enablement_pilotcd_v1.name] | ||
consume_groups = ["dev_enablement.pilotcd.api"] | ||
cert_common_name = "crm/okta-projector" | ||
} |