Skip to content

Commit

Permalink
DPR2-147: Create empty kinesis stream
Browse files Browse the repository at this point in the history
  • Loading branch information
koladeadewuyi-moj committed Oct 6, 2023
1 parent 69ff7a6 commit ae68de6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions terraform/environments/digital-prison-reporting/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,27 @@ module "kinesis_stream_ingestor" {
)
}

module "kinesis_stream_ingestor" {
source = "./modules/kinesis_stream"
create_kinesis_stream = local.create_kinesis
name = "empty-kinesis-stream"
shard_count = 1 # Not Valid when ON-DEMAND Mode
retention_period = local.kinesis_retention_hours
shard_level_metrics = ["IncomingBytes", "OutgoingBytes"]
enforce_consumer_deletion = false
encryption_type = "KMS"
kms_key_id = local.kinesis_kms_id
project_id = local.project

tags = merge(
local.all_tags,
{
Name = "empty-kinesis-stream"
Resource_Type = "Kinesis Data Stream"
}
)
}

module "kinesis_stream_reconciliation_firehose_s3" {
source = "./modules/kinesis_firehose"
name = "reconciliation-${module.kinesis_stream_ingestor.kinesis_stream_name}"
Expand Down

0 comments on commit ae68de6

Please sign in to comment.