From 157e2db453836c3a5741537ec45694c1a12ea0fe Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 28 Nov 2021 15:23:44 -0800 Subject: [PATCH] * Private ip's now adhere to new subnets --- infra/alpha.tf | 2 +- infra/beta.tf | 2 +- infra/gamma.tf | 9 ++++++--- infra/sigma.tf | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/infra/alpha.tf b/infra/alpha.tf index eebe993..cc273b6 100644 --- a/infra/alpha.tf +++ b/infra/alpha.tf @@ -19,7 +19,7 @@ resource "aws_instance" "alpha" { key_name = var.alpha_ssh_key_name - private_ip = "10.0.0.151" + private_ip = "10.0.1.10" security_groups = [ aws_security_group.general_web_req.id, aws_security_group.internal_ssh_recv.id diff --git a/infra/beta.tf b/infra/beta.tf index ecf57b5..ef33e93 100644 --- a/infra/beta.tf +++ b/infra/beta.tf @@ -17,7 +17,7 @@ resource "aws_instance" "beta" { key_name = var.beta_public_key_path - private_ip = "10.0.0.152" + private_ip = "10.0.1.11" security_groups = [ aws_security_group.general_web_req.id, aws_security_group.internal_ssh_recv.id diff --git a/infra/gamma.tf b/infra/gamma.tf index 9758ca8..ff7cb9b 100644 --- a/infra/gamma.tf +++ b/infra/gamma.tf @@ -15,10 +15,13 @@ resource "aws_instance" "gamma" { key_name = var.gamma_ssh_key_name - private_ip = "10.0.0.153" + private_ip = "10.0.2.10" - security_groups = [ aws_security_group.gamma_sec.id ] - subnet_id = aws_subnet.crete_subnet.id + security_groups = [ + aws_security_group.gamma_sec.id, + aws_security_group.general_web_req.id + ] + subnet_id = aws_subnet.olympus_subnet.id tags = { Name = "Gamma Host" } diff --git a/infra/sigma.tf b/infra/sigma.tf index 678da22..2b71efe 100644 --- a/infra/sigma.tf +++ b/infra/sigma.tf @@ -19,13 +19,13 @@ resource "aws_instance" "sigma" { key_name = var.sigma_ssh_key_name - private_ip = "10.0.0.154" + private_ip = "10.0.2.11" security_groups = [ aws_security_group.internal_ssh_recv.id, aws_security_group.general_web_req.id, ] - subnet_id = aws_subnet.crete_subnet.id + subnet_id = aws_subnet.olympus_subnet.id tags = { Name = "Sigma Host"