diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..6f29fee --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f4f625c --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/xquare-infrastructure-global.iml b/.idea/xquare-infrastructure-global.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/xquare-infrastructure-global.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/db.tf b/db.tf index e03152d..4426c0c 100644 --- a/db.tf +++ b/db.tf @@ -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" @@ -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" { @@ -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" -} +} \ No newline at end of file