Skip to content

Commit b32ca17

Browse files
committed
Update main.tf
1 parent c59742c commit b32ca17

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

aws/main.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ module "redpanda-cluster" {
1313
distro = var.distro
1414
hosts_file = var.hosts_file
1515
subnets = {
16-
var.availability_zone = var.subnet_id
16+
"broker" : {
17+
"${var.availability_zone}" : var.subnet_id
18+
}
1719
}
1820
tags = var.tags
1921
aws_region = var.aws_region
2022
associate_public_ip_addr = var.associate_public_ip_addr
21-
availability_zone = var.availability_zone
23+
availability_zone = [var.availability_zone]
2224
client_count = 1
2325
broker_instance_type = var.instance_type
2426
client_instance_type = var.instance_type
@@ -27,8 +29,8 @@ module "redpanda-cluster" {
2729
}
2830

2931
variable "availability_zone" {
30-
default = ["us-west-2a"]
31-
type = list(string)
32+
default = "us-west-2a"
33+
type = string
3234
}
3335

3436
variable "associate_public_ip_addr" {

0 commit comments

Comments
 (0)