diff --git a/main.tf b/main.tf index d527317..b80555a 100644 --- a/main.tf +++ b/main.tf @@ -139,11 +139,3 @@ resource "aws_msk_cluster" "default" { tags = module.label.tags } -module "hostname" { - count = var.number_of_broker_nodes > 0 ? var.number_of_broker_nodes : 0 - source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.5.0" - enabled = var.enabled && length(var.zone_id) > 0 - name = "${module.label.name}-broker-${count.index + 1}" - zone_id = var.zone_id - records = [split(":", local.bootstrap_brokers_combined_list[count.index])[0]] -} diff --git a/outputs.tf b/outputs.tf index cc0798c..7b05aa1 100644 --- a/outputs.tf +++ b/outputs.tf @@ -33,11 +33,6 @@ output "latest_revision" { value = join("", aws_msk_configuration.config.*.latest_revision) } -output "hostname" { - description = "MSK Cluster Broker DNS hostname" - value = join("", module.hostname.*.hostname) -} - output "cluster_name" { description = "MSK Cluster name" value = join("", aws_msk_cluster.default.*.cluster_name) diff --git a/variables.tf b/variables.tf index 1985f3e..3c3aa84 100644 --- a/variables.tf +++ b/variables.tf @@ -83,11 +83,6 @@ variable "subnet_ids" { description = "Subnet IDs for Client Broker" } -variable "zone_id" { - type = string - description = "Route53 DNS Zone ID for MSK broker hostnames" -} - variable "security_groups" { type = list(string) default = [] diff --git a/versions.tf b/versions.tf index f90f6be..9954f08 100644 --- a/versions.tf +++ b/versions.tf @@ -4,6 +4,6 @@ terraform { required_providers { local = "~> 1.2" random = "~> 2.2" - aws = ">= 2.0, < 4.0" + aws = ">= 3.0, < 4.0" } }