Untitled

mail@pastecode.io avatar
unknown
plain_text
14 days ago
560 B
0
Indexable
Never
resource "aws_instance" "bastion-host" {
  ami = var.bastion_ami
  instance_type = var.bastion_instance_type
  key_name = "sandbx-bastion-key"
  subnet_id = [aws_subnet.eks_bastion.id]
  #vpc_security_group_ids = [aws_security_group.eks-bastion-sg.id]
  iam_instance_profile = var.bastion_instance_profile
 
  tag_specifications {
    resource_type = "instance"
    tags = {
      Name         = "${var.project_name_lower_case}-mgmt-svr"
      Environment  = var.env_tags
      Cost_Center  = var.cost_center
      Project      = var.project_name
    }
  }
 
}
Leave a Comment