mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
changed default vpc definition
This commit is contained in:
parent
4877db46f8
commit
63ba8ce5cb
1 changed files with 4 additions and 2 deletions
|
|
@ -30,14 +30,16 @@ data "aws_secretsmanager_secret_version" "db_credentials" {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Default VPC
|
# 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
|
# 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
|
# 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" {
|
resource "aws_security_group" "allow_db" {
|
||||||
name = "allow_tls"
|
name = "allow_tls"
|
||||||
description = "Allow TLS inbound traffic"
|
description = "Allow TLS inbound traffic"
|
||||||
vpc_id = data.aws_default_vpc.default.id
|
vpc_id = data.aws_vpc.default.id
|
||||||
|
|
||||||
ingress {
|
ingress {
|
||||||
# TLS (change to whatever ports you need)
|
# TLS (change to whatever ports you need)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue