Skip to content

Commit

Permalink
Deixando documentDB na mesma subnet
Browse files Browse the repository at this point in the history
  • Loading branch information
jonilsonds9 committed Jan 29, 2024
1 parent 5841f81 commit ce72cbf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions infra/document-db.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
resource "aws_db_subnet_group" "docdb" {
name = "subnet_group_docdb"

subnet_ids = aws_subnet.private_subnet.*.id

tags = {
Name = "DocumentDB subnet group"
}
}

resource "aws_security_group" "docdb" {
name = "${var.app_name}-docdb-sg"
description = "SG for DocumentDB"
Expand Down Expand Up @@ -47,7 +37,7 @@ resource "aws_docdb_cluster" "docdb" {
skip_final_snapshot = true
apply_immediately = true
vpc_security_group_ids = [aws_security_group.docdb.id]
db_subnet_group_name = aws_db_subnet_group.docdb.name
db_subnet_group_name = aws_db_subnet_group.rds.name
}

resource "aws_docdb_cluster_instance" "docdb_instances" {
Expand Down

0 comments on commit ce72cbf

Please sign in to comment.