diff --git a/web_api/terraform/main.tf b/web_api/terraform/main.tf index f8bb83d2..87883741 100644 --- a/web_api/terraform/main.tf +++ b/web_api/terraform/main.tf @@ -11,6 +11,7 @@ terraform { } } + # Data source to find the latest Ubuntu AMI data "aws_ami" "ubuntu" { most_recent = true @@ -75,7 +76,7 @@ resource "aws_instance" "app" { instance_type = var.instance_type subnet_id = aws_subnet.main.id key_name = "dsst2023" - security_groups = [aws_security_group.app.name] + vpc_security_group_ids = [aws_security_group.app.id] tags = { Name = "${var.environment}-instance" diff --git a/web_api/terraform/variables.tf b/web_api/terraform/variables.tf index 76abee1b..696db287 100644 --- a/web_api/terraform/variables.tf +++ b/web_api/terraform/variables.tf @@ -23,14 +23,6 @@ variable "security_group_ids" { type = list(string) } -variable "mongodb_uri" { - description = "MongoDB URI for state locking" -} - -variable "mongodb_db" { - description = "MongoDB Database for state locking" -} - variable "domain" { description = "Domain for Traefik" default = "osm.nimh.nih.gov"