terraform: use correct security group option for jump host (#2715)

This commit is contained in:
3u13r 2023-12-13 18:05:25 +01:00 committed by GitHub
parent ae00b0a198
commit 1d6e5ca3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -218,7 +218,7 @@ module "jump_host" {
lb_internal_ip = aws_lb.front_end.dns_name lb_internal_ip = aws_lb.front_end.dns_name
ports = [for port in local.load_balancer_ports : port.port] ports = [for port in local.load_balancer_ports : port.port]
iam_instance_profile = var.iam_instance_profile_worker_nodes iam_instance_profile = var.iam_instance_profile_worker_nodes
security_group_id = aws_security_group.security_group.id security_groups = [aws_security_group.security_group.id]
} }
# TODO(31u3r): Remove once 2.12 is released # TODO(31u3r): Remove once 2.12 is released

View File

@ -25,7 +25,7 @@ resource "aws_instance" "jump_host" {
iam_instance_profile = var.iam_instance_profile iam_instance_profile = var.iam_instance_profile
subnet_id = var.subnet_id subnet_id = var.subnet_id
security_groups = [var.security_group_id] vpc_security_group_ids = var.security_groups
tags = { tags = {
"Name" = "${var.base_name}-jump-host" "Name" = "${var.base_name}-jump-host"

View File

@ -23,7 +23,7 @@ variable "ports" {
type = list(number) type = list(number)
} }
variable "security_group_id" { variable "security_groups" {
description = "Security group to attach to the jump host" type = list(string)
type = string description = "List of IDs of the security groups for an instance."
} }