Skip to content

Commit

Permalink
chore(kafka): reuse kafka kms key (#18117)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Jul 19, 2024
1 parent 4e9ca4a commit 68edce2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ module "iot_kafka_sasl_scram_secret_association" {
}

# Tracker Kafka
data "aws_kms_alias" "aws_kms_kafka_key" {
provider = aws.production
name = "alias/aws/kafka"
}
locals {
tracker_kafka_name = "hm-${var.environment}-tracker-kakfa"
tracker_amazon_vpc_private_subnet_ids = slice(var.amazon_vpc_private_subnet_ids, 0, 3)
Expand Down Expand Up @@ -109,7 +105,7 @@ module "hm_amazon_msk_cluster" {
amazon_vpc_security_group_id = module.tracker_kafka_security_group.id
amazon_vpc_subnet_ids = slice(var.amazon_vpc_private_subnet_ids, 0, 3)
amazon_ebs_volume_size_gb = 16
aws_kms_key_arn = data.aws_kms_alias.aws_kms_kafka_key.target_key_arn
aws_kms_key_arn = module.kafka_kms_key.arn
environment = var.environment
team = var.team
}
Expand Down

0 comments on commit 68edce2

Please sign in to comment.