Skip to content

Commit b823932

Browse files
committed
chore: update README based with feedback suggestions
1 parent dda4d8a commit b823932

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ There are a couple different configuration methods that can be used to create in
6464
- Reader(s): 2
6565

6666
```hcl
67-
...
6867
instance_class = "db.r6g.large"
69-
instances = { for i in range(3) : i => {} }
70-
...
68+
instances = {
69+
one = {}
70+
two = {}
71+
three = {}
72+
}
7173
```
7274

7375
2. Create homogenous cluster of instances w/ autoscaling enabled. This is redundant and we'll show why in the next example.
@@ -81,14 +83,16 @@ There are a couple different configuration methods that can be used to create in
8183
ℹ️ Autoscaling uses the instance class specified by `instance_class`.
8284

8385
```hcl
84-
...
8586
instance_class = "db.r6g.large"
86-
instances = { for i in range(3) : i => {} }
87+
instances = {
88+
one = {}
89+
two = {}
90+
three = {}
91+
}
8792
8893
autoscaling_enabled = true
8994
autoscaling_min_capacity = 2
9095
autoscaling_max_capacity = 5
91-
...
9296
```
9397

9498
3. Create homogeneous cluster scaled via autoscaling. At least one instance (writer) is required
@@ -100,14 +104,14 @@ There are a couple different configuration methods that can be used to create in
100104
- At most 5 readers
101105

102106
```hcl
103-
...
104107
instance_class = "db.r6g.large"
105-
instances = { 1 = {} }
108+
instances = {
109+
one = {}
110+
}
106111
107112
autoscaling_enabled = true
108113
autoscaling_min_capacity = 1
109114
autoscaling_max_capacity = 5
110-
...
111115
```
112116

113117
4. Create heterogenous cluster to support mixed-use workloads
@@ -119,24 +123,22 @@ There are a couple different configuration methods that can be used to create in
119123
- Readers: 2
120124

121125
```hcl
122-
...
123126
instance_class = "db.r5.large"
124127
instances = {
125-
1 = {
128+
one = {
126129
instance_class = "db.r5.2xlarge"
127130
publicly_accessible = true
128131
}
129-
2 = {
132+
two = {
130133
identifier = "static-member-1"
131134
instance_class = "db.r5.2xlarge"
132135
}
133-
3 = {
136+
three = {
134137
identifier = "excluded-member-1"
135138
instance_class = "db.r5.large"
136139
promotion_tier = 15
137140
}
138141
}
139-
...
140142
```
141143

142144
5. Create heterogenous cluster to support mixed-use workloads w/ autoscaling enabled
@@ -150,18 +152,17 @@ There are a couple different configuration methods that can be used to create in
150152
ℹ️ Autoscaling uses the instance class specified by `instance_class`.
151153

152154
```hcl
153-
...
154155
instance_class = "db.r5.large"
155156
instances = {
156-
1 = {
157+
one = {
157158
instance_class = "db.r5.2xlarge"
158159
publicly_accessible = true
159160
}
160-
2 = {
161+
two = {
161162
identifier = "static-member-1"
162163
instance_class = "db.r5.2xlarge"
163164
}
164-
3 = {
165+
three = {
165166
identifier = "excluded-member-1"
166167
instance_class = "db.r5.large"
167168
promotion_tier = 15
@@ -171,7 +172,6 @@ There are a couple different configuration methods that can be used to create in
171172
autoscaling_enabled = true
172173
autoscaling_min_capacity = 1
173174
autoscaling_max_capacity = 5
174-
...
175175
```
176176

177177
## Conditional Creation

0 commit comments

Comments
 (0)