infra/infra/alpha.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
643 B
HCL

# Alpha is our primary server that we use for bots which basically
# serve services that I personally run
resource "aws_key_pair" "alpha_ssh" {
key_name = var.alpha_ssh_key_name
public_key = file(var.alpha_public_key_path)
}
resource "aws_instance" "alpha" {
ami = var.alpha_ami_id
instance_type = var.alpha_instance_type
key_name = var.alpha_ssh_key_name
private_ip = "10.0.1.10"
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 = "Alpha Host"
Description = "Docker host with chatbots mostly"
}
}