Skip to content

Commit 083ed09

Browse files
committed
Updated readme with conditional creatino section
1 parent 495d966 commit 083ed09

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,23 @@ module "db" {
7474
}
7575
```
7676

77+
Conditional creation
78+
--------------------
79+
80+
There is also a way to specify an existing database subnet group and parameter group name instead of creating new resources like this:
81+
82+
```hcl
83+
# This RDS instance will be created using default database subnet and parameter group
84+
module "db" {
85+
source = "terraform-aws-modules/rds/aws"
86+
87+
db_subnet_group_name = "default"
88+
parameter_group_name = "default.mysql5.7"
89+
90+
# ... omitted
91+
}
92+
```
93+
7794
Examples
7895
--------
7996

0 commit comments

Comments
 (0)