* Private ip's now adhere to new subnets

This commit is contained in:
shockrah 2021-11-28 15:23:44 -08:00
parent 86a0122042
commit 157e2db453
4 changed files with 10 additions and 7 deletions

View File

@ -19,7 +19,7 @@ resource "aws_instance" "alpha" {
key_name = var.alpha_ssh_key_name key_name = var.alpha_ssh_key_name
private_ip = "10.0.0.151" private_ip = "10.0.1.10"
security_groups = [ security_groups = [
aws_security_group.general_web_req.id, aws_security_group.general_web_req.id,
aws_security_group.internal_ssh_recv.id aws_security_group.internal_ssh_recv.id

View File

@ -17,7 +17,7 @@ resource "aws_instance" "beta" {
key_name = var.beta_public_key_path key_name = var.beta_public_key_path
private_ip = "10.0.0.152" private_ip = "10.0.1.11"
security_groups = [ security_groups = [
aws_security_group.general_web_req.id, aws_security_group.general_web_req.id,
aws_security_group.internal_ssh_recv.id aws_security_group.internal_ssh_recv.id

View File

@ -15,10 +15,13 @@ resource "aws_instance" "gamma" {
key_name = var.gamma_ssh_key_name 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 ] security_groups = [
subnet_id = aws_subnet.crete_subnet.id aws_security_group.gamma_sec.id,
aws_security_group.general_web_req.id
]
subnet_id = aws_subnet.olympus_subnet.id
tags = { tags = {
Name = "Gamma Host" Name = "Gamma Host"
} }

View File

@ -19,13 +19,13 @@ resource "aws_instance" "sigma" {
key_name = var.sigma_ssh_key_name key_name = var.sigma_ssh_key_name
private_ip = "10.0.0.154" private_ip = "10.0.2.11"
security_groups = [ security_groups = [
aws_security_group.internal_ssh_recv.id, aws_security_group.internal_ssh_recv.id,
aws_security_group.general_web_req.id, aws_security_group.general_web_req.id,
] ]
subnet_id = aws_subnet.crete_subnet.id subnet_id = aws_subnet.olympus_subnet.id
tags = { tags = {
Name = "Sigma Host" Name = "Sigma Host"