Skip to content

Commit

Permalink
[Dev-Enablement] Create pilotcd topic (#736)
Browse files Browse the repository at this point in the history
### 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
darren-west authored Dec 18, 2024
1 parent 66d3d02 commit 2648906
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev-aws/kafka-shared-msk/dev-enablement/__backend.tf
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
}
}
1 change: 1 addition & 0 deletions dev-aws/kafka-shared-msk/dev-enablement/__env.tf
28 changes: 28 additions & 0 deletions dev-aws/kafka-shared-msk/dev-enablement/pilotcd.tf
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"
}

0 comments on commit 2648906

Please sign in to comment.