Skip to content

Commit 7ef872b

Browse files
committed
fix for bug with tf
1 parent 308ae7f commit 7ef872b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

module/single-node-omnibus/alb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "aws_lb" "gitlab_alb" {
44
internal = false
55
security_groups = ["${aws_security_group.gitlab_alb.id}"]
66
ip_address_type = "ipv4"
7-
subnets = "${var.public_subnet_id}"
7+
subnets = ["${var.public_subnet_id}"]
88
tags = "${merge (module.gitlab_label.tags, map ("Role", module.gitlab_label.name ))}"
99
}
1010

module/single-node-omnibus/local-resources.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# use this resource when a module accepts a subnet id as an input variable and needs to, for example, determine the id of the VPC that the subnet belongs to.
22
data "aws_subnet" "private_selected" {
3-
id = "${element (var.private_subnet_id, 0)}"
3+
id = "${element (["${var.private_subnet_id}"], 0)}"
44
}
55

66
data "aws_subnet" "public_selected" {
7-
id = "${element (var.public_subnet_id, 0)}"
7+
id = "${element (["${var.public_subnet_id}"], 0)}"
88
}
99

1010
# Use this data source to get the access to the effective Account ID, User ID, and ARN in which Terraform is authorized.

0 commit comments

Comments
 (0)