infra/infra/beta.tf
shockrah acfd39be9b + Creating new volume for the photo/video gallery service
Service ware still needs to be defined but this is the only resource we need
to build out in order to have things be kosher
2022-06-12 21:34:39 -07:00

26 lines
544 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"
vpc_security_group_ids = [
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"
}
}