From 6141853f5fbb837373c46953dd6fca499c4fecef Mon Sep 17 00:00:00 2001 From: David Fry Date: Tue, 23 May 2023 00:28:34 +0100 Subject: [PATCH] force pub ip --- terraform/aws/base-infra/infra.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/aws/base-infra/infra.tf b/terraform/aws/base-infra/infra.tf index a547af952..b0f1ee16b 100644 --- a/terraform/aws/base-infra/infra.tf +++ b/terraform/aws/base-infra/infra.tf @@ -78,7 +78,7 @@ resource "aws_instance" "bastion" { subnet_id = element(module.vpc.public_subnets, 0) user_data = templatefile("${path.module}/templates/bastion.user_data.tmpl", { ssh_keys = local.ssh_keys }) key_name = local.cluster_domain - + associate_public_ip_address = true vpc_security_group_ids = [aws_security_group.bastion.id, module.vpc.default_security_group_id] tags = merge({ Name = "${local.cluster_domain}-bastion" }, local.common_tags)