Skip to content

Commit

Permalink
chore: add IntelliJ IDEA project files to version control for better …
Browse files Browse the repository at this point in the history
…IDE support

feat(db.tf): add AWS DocumentDB cluster parameter group to manage TLS settings and associate it with the DocumentDB cluster
  • Loading branch information
HyunSu1768 committed Sep 11, 2024
1 parent 344bd0b commit 060180d
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/xquare-infrastructure-global.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ resource "aws_security_group" "docdb" {
}
}

resource "aws_docdb_cluster_parameter_group" "docdb_param_group" {
family = "docdb5.0"
name = "xquare-docdb-param-group"

parameter {
name = "tls"
value = "disabled"
}
}

resource "aws_docdb_cluster" "docdb" {
cluster_identifier = "xquare-docdb-cluster"
engine = "docdb"
Expand All @@ -76,6 +86,8 @@ resource "aws_docdb_cluster" "docdb" {

vpc_security_group_ids = [aws_security_group.docdb.id]
db_subnet_group_name = aws_docdb_subnet_group.docdb.name

db_cluster_parameter_group_name = aws_docdb_cluster_parameter_group.docdb_param_group.name
}

resource "aws_docdb_subnet_group" "docdb" {
Expand All @@ -88,4 +100,4 @@ resource "aws_docdb_cluster_instance" "cluster_instances" {
identifier = "xquare-docdb-${count.index}"
cluster_identifier = aws_docdb_cluster.docdb.id
instance_class = "db.r6g.large"
}
}

0 comments on commit 060180d

Please sign in to comment.