infra/infra/alpha.tf
shockrah 92a450927d - Removing tons of complexity and removing cost overall
! Down to just 2 public servers for now because why tf now servers
2021-12-03 21:25:51 -08:00

33 lines
776 B
HCL

# Alpha is our primary server that we use for bots which basically
# serve services that I personally run
variable "alpha_ssh_key_name" {}
variable "alpha_public_key_path" {}
variable "alpha_instance_type" {}
variable "alpha_ami_id" {}
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"
}
}