diff --git a/infrastructure/terraform/main.tf b/infrastructure/terraform/main.tf index ea84e1d7..d47d64fe 100644 --- a/infrastructure/terraform/main.tf +++ b/infrastructure/terraform/main.tf @@ -30,14 +30,16 @@ data "aws_secretsmanager_secret_version" "db_credentials" { } # Default VPC -data "aws_default_vpc" "default" {} +data "aws_vpc" "default" { + default = true +} # For MVP, we allow all inbound traffic to the DB - this will need to be changed later; we'll likely # need to re-deploy the frontend to AWS so that it's within the same VPC as the DB resource "aws_security_group" "allow_db" { name = "allow_tls" description = "Allow TLS inbound traffic" - vpc_id = data.aws_default_vpc.default.id + vpc_id = data.aws_vpc.default.id ingress { # TLS (change to whatever ports you need)