mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 15:09:39 -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
|
||||||
|
@ -23,9 +23,9 @@ resource "aws_instance" "jump_host" {
|
|||||||
instance_type = "c5a.large"
|
instance_type = "c5a.large"
|
||||||
associate_public_ip_address = true
|
associate_public_ip_address = true
|
||||||
|
|
||||||
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