|
@@ -16,17 +16,18 @@ resource "aws_network_interface" "instance" {
|
|
|
tags = merge(var.standard_tags, var.tags, { Name = "rhsso-${count.index}" })
|
|
|
}
|
|
|
|
|
|
-resource "aws_eip" "instance" {
|
|
|
- count = var.rhsso_instance_count
|
|
|
- vpc = true
|
|
|
- tags = merge(var.standard_tags, var.tags, { Name = "rhsso-${count.index}" })
|
|
|
-}
|
|
|
+# Even though it's in the public subnet, no EIP, as it's handled by the NLB. It must use the proxy for outbound access.
|
|
|
+#resource "aws_eip" "instance" {
|
|
|
+# count = var.rhsso_instance_count
|
|
|
+# vpc = true
|
|
|
+# tags = merge(var.standard_tags, var.tags, { Name = "rhsso-${count.index}" })
|
|
|
+#}
|
|
|
|
|
|
-resource "aws_eip_association" "instance" {
|
|
|
- count = var.rhsso_instance_count
|
|
|
- network_interface_id = aws_network_interface.instance[count.index].id
|
|
|
- allocation_id = aws_eip.instance[count.index].id
|
|
|
-}
|
|
|
+#resource "aws_eip_association" "instance" {
|
|
|
+# count = var.rhsso_instance_count
|
|
|
+# network_interface_id = aws_network_interface.instance[count.index].id
|
|
|
+# allocation_id = aws_eip.instance[count.index].id
|
|
|
+#}
|
|
|
|
|
|
resource "aws_instance" "instance" {
|
|
|
count = var.rhsso_instance_count
|