Files
infra/infra/alpha.tf

26 lines
643 B
Terraform
Raw Normal View History

# 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
2021-11-25 00:09:40 -08:00
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
2021-11-25 00:09:40 -08:00
tags = {
Name = "Alpha Host"
Description = "Docker host with chatbots mostly"
2021-11-25 00:09:40 -08:00
}
}