infra/infra/beta.tf
shockrah 87f7daed2b * Moving all vars to an input-vars.tf module
The idea with this is to centralize the variables so that they are
easier to find and configure. The old way was scattered and lead to
being unclear. There is also much more documentation added with this
patch for clarity-sake
2022-04-22 22:31:28 -07:00

26 lines
537 B
HCL

# This module defines the beta server instance which
resource "aws_key_pair" "beta_ssh" {
key_name = var.beta_public_key_path
public_key = file(var.beta_public_key_path)
}
resource "aws_instance" "beta" {
ami = var.beta_ami_id
instance_type = var.beta_instance_type
key_name = var.beta_public_key_path
private_ip = "10.0.1.11"
security_groups = [
aws_security_group.general_web_req.id,
aws_security_group.remote_ssh_rec.id
]
subnet_id = aws_subnet.crete_subnet.id
tags = {
Name = "Beta Host"
}
}