Skip to content

Commit 04c2c6b

Browse files
sbogar-shsjpalermo
authored andcommitted
resolve deprecation warning in aws_eip resource
resolve concourse-lb issue with aws_lb subnets property
1 parent db5d852 commit 04c2c6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

terraform/aws/templates/base.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ variable "vpc_cidr" {
6060

6161
resource "aws_eip" "jumpbox_eip" {
6262
depends_on = [aws_internet_gateway.ig]
63-
vpc = true
63+
domain = "vpc"
6464
}
6565

6666
resource "tls_private_key" "bosh_vms" {
@@ -138,7 +138,7 @@ resource "aws_nat_gateway" "nat" {
138138
}
139139

140140
resource "aws_eip" "nat_eip" {
141-
vpc = true
141+
domain = "vpc"
142142

143143
tags = {
144144
Name = "${var.env_id}-nat"

terraform/aws/templates/concourse_lb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ resource "aws_security_group_rule" "concourse_lb_internal_egress" {
5555
resource "aws_lb" "concourse_lb" {
5656
name = "${var.short_env_id}-concourse-lb"
5757
load_balancer_type = "network"
58-
subnets = ["${aws_subnet.lb_subnets.*.id}"]
58+
subnets = flatten(["${aws_subnet.lb_subnets.*.id}"])
5959

6060
tags = {
6161
Name = "${var.env_id}"

0 commit comments

Comments
 (0)