infra/infra/alpha.tf
shockrah 82d039369c !+ Sigma Instance
This will be the web host reverse proxy (for alpha & beta)
!+ More sec groups for port 80 for apt's request fallback
Only because Apt blows

* Renaming sec-group::basic_web_sec -> sec-group::general_web_req
Should be clearer w/  this rename
2021-11-25 20:44:00 -08:00

31 lines
699 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
security_groups = [
aws_security_group.general_web_req.id,
aws_security_group.internal_ssh_recv.id
]
subnet_id = aws_subnet.crete_subnet.id
tags = {
Name = "Alpha Host"
}
}