Created
December 31, 2020 13:12
-
-
Save BastienM/b85d0014cb5e39c6c66a5b1b1120475b to your computer and use it in GitHub Desktop.
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
# Simple module to enforce our naming convention | |
module "msk_names" { | |
source = "git::ssh://git@our-awesome-vcs.com/terraform-modules/naming.git?ref=v2.0.0" | |
region = var.aws_region | |
environment = var.environment | |
type = var.type | |
project = var.project | |
component = "msk" | |
owner = var.owner | |
} | |
module "msk" { | |
source = "git::ssh://git@our-awesome-vcs.com/terraform-modules/msk_cluster.git?ref=v1.0.1" | |
names = module.msk_names.names | |
kafka_version = var.kafka_version | |
kafka_server_properties = var.kafka_server_properties | |
instance_type = var.instance_type | |
ebs_volume_size = var.ebs_volume_size | |
vpc_id = data.terraform_remote_state.vpc.outputs.infra_vpc_id | |
client_subnets = data.terraform_remote_state.vpc.outputs.infra_subnet_data_ids | |
number_of_broker_nodes = var.brokers_size | |
allowed_cidrs = join(",", list( | |
data.terraform_remote_state.vpc.outputs.infra_subnet_app_cidr, | |
data.terraform_remote_state.remote_state.outputs.support_app_cidr, | |
var.offices_cidr | |
)) | |
config_name_suffix = var.config_name_suffix | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment