mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 07:29:38 -05:00
terraform: use correct security group option for jump host (#2715)
This commit is contained in:
parent
ae00b0a198
commit
1d6e5ca3ea
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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."
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user