Skip to content

Commit

Permalink
remove superfluous mongo and fix securiy group
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Jul 31, 2024
1 parent 8652f7e commit 8964e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion web_api/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ terraform {
}
}


# Data source to find the latest Ubuntu AMI
data "aws_ami" "ubuntu" {
most_recent = true
Expand Down Expand Up @@ -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"
Expand Down
8 changes: 0 additions & 8 deletions web_api/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8964e16

Please sign in to comment.