-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.tfdoc.hcl
1213 lines (1044 loc) · 36.4 KB
/
README.tfdoc.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
header {
image = "https://raw.githubusercontent.com/mineiros-io/brand/3bffd30e8bdbbde32c143e2650b2faa55f1df3ea/mineiros-primary-logo.svg"
url = "https://mineiros.io/?ref=terraform-google-cloud-sql"
badge "build" {
image = "https://github.com/mineiros-io/terraform-google-cloud-sql/workflows/Tests/badge.svg"
url = "https://github.com/mineiros-io/terraform-google-cloud-sql/actions"
text = "Build Status"
}
badge "semver" {
image = "https://img.shields.io/github/v/tag/mineiros-io/terraform-google-cloud-sql.svg?label=latest&sort=semver"
url = "https://github.com/mineiros-io/terraform-google-cloud-sql/releases"
text = "GitHub tag (latest SemVer)"
}
badge "terraform" {
image = "https://img.shields.io/badge/Terraform-1.x-623CE4.svg?logo=terraform"
url = "https://github.com/hashicorp/terraform/releases"
text = "Terraform Version"
}
badge "tf-gcp-provider" {
image = "https://img.shields.io/badge/google-4-1A73E8.svg?logo=terraform"
url = "https://github.com/terraform-providers/terraform-provider-google/releases"
text = "Google Provider Version"
}
badge "slack" {
image = "https://img.shields.io/badge/slack-@mineiros--community-f32752.svg?logo=slack"
url = "https://mineiros.io/slack"
text = "Join Slack"
}
}
section {
title = "terraform-google-cloud-sql"
toc = true
content = <<-END
A [Terraform] module for [Google Cloud Platform (GCP)][gcp].
**_This module supports Terraform version 1
and is compatible with the Terraform Google Provider version 4._** and 5._**
**NOTE: This module doesn't support SQL Server**
This module is part of our Infrastructure as Code (IaC) framework
that enables our users and customers to easily deploy and manage reusable,
secure, and production-grade cloud infrastructure.
END
section {
title = "Module Features"
content = <<-END
This module implements the following terraform resources:
- `google_sql_database_instance`
- `google_sql_database`
- `google_sql_ssl_cert`
- `google_sql_user`
END
}
section {
title = "Getting Started"
content = <<-END
Most basic usage just setting required arguments:
```hcl
module "terraform-google-cloud-sql" {
source = "github.com/mineiros-io/terraform-google-cloud-sql.git?ref=v0.1.0"
tier = "db-f1-micro"
database_version = "MYSQL_5_6"
}
```
END
}
section {
title = "Module Argument Reference"
content = <<-END
See [variables.tf] and [examples/] for details and use-cases.
END
section {
title = "Module Configuration"
variable "module_enabled" {
type = bool
default = true
description = <<-END
Specifies whether resources in the module will be created.
END
}
variable "module_depends_on" {
type = list(dependency)
description = <<-END
A list of dependencies. Any object can be _assigned_ to this list to define a hidden external dependency.
END
readme_example = <<-END
module_depends_on = [
google_network.network
]
END
}
}
section {
title = "Main Resource Configuration"
variable "database_version" {
required = true
type = string
description = <<-END
The MySQL or PostgreSQL version to use.
END
}
variable "tier" {
required = true
type = string
description = <<-END
The machine type to use.
END
}
variable "project" {
required = true
type = string
description = <<-END
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
END
}
variable "name" {
type = string
description = <<-END
The name of the instance. If the name is left blank, Terraform will randomly generate one when the instance is first created. This is done because after a name is used, it cannot be reused for up to one week.
END
}
variable "region" {
type = string
description = <<-END
The region the instance will sit in. If a region is not provided in the resource definition, the provider region will be used instead.
END
}
variable "master_instance_name" {
type = string
description = <<-END
The name of the existing instance that will act as the master in the replication setup. Note, this requires the master to have `binary_log_enabled` set, as well as existing backups.
END
}
variable "deletion_protection" {
type = bool
default = true
description = <<-END
Whether or not to allow Terraform to destroy the instance.
END
}
variable "deletion_protection_enabled" {
type = bool
default = false
description = <<-END
Enables deletion protection of an instance at the GCP level.
END
}
variable "encryption_key_name" {
type = string
default = null
description = <<-END
The full path to the encryption key used for the CMEK disk encryption.
END
}
variable "activation_policy" {
type = string
description = <<-END
This specifies when the instance should be active. Can be either `ALWAYS`, `NEVER` or `ON_DEMAND`.
END
}
variable "activation_policy" {
type = string
description = <<-END
This specifies when the instance should be active. Can be either `ALWAYS`, `NEVER` or `ON_DEMAND`.
END
}
variable "availability_type" {
type = string
description = <<-END
The availability type of the Cloud SQL instance, high availability `REGIONAL` or single zone `ZONAL`. For MySQL instances, ensure that `settings.backup_configuration.enabled` and `settings.backup_configuration.binary_log_enabled` are both set to `true`.
END
}
variable "disk_autoresize" {
type = bool
default = true
description = <<-END
Configuration to increase storage size automatically.
END
}
variable "disk_autoresize_limit" {
type = number
default = 0
description = <<-END
The maximum size in GB to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
END
}
variable "disk_size" {
type = number
default = 10
description = <<-END
The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased.
END
}
variable "disk_type" {
type = string
default = "PD_SSD"
description = <<-END
The type of data disk: `PD_SSD` or `PD_HDD`.
END
}
variable "pricing_plan" {
type = string
description = <<-END
Pricing plan for this instance, can only be `PER_USE`.
END
}
variable "user_labels" {
type = map(string)
description = <<-END
A set of key/value user label pairs to assign to the instance.
END
}
variable "database_flags" {
type = list(database_flag)
description = <<-END
A list of database flags.
END
attribute "name" {
required = true
type = string
description = <<-END
Name of the flag.
END
}
attribute "value" {
required = true
type = string
description = <<-END
Value of the flag.
END
readme_example = <<-END
database_flags = [{
name = "long_query_time"
value = "1"
}]
END
}
}
variable "backup_configuration" {
type = object(backup_configuration)
description = <<-END
An object of backup configuration.
END
readme_example = <<-END
backup_configuration = {
enabled = true
start_time = "17:00"
}
END
attribute "binary_log_enabled" {
type = bool
description = <<-END
True if binary logging is enabled. If `settings.backup_configuration.enabled` is `false`, this must be as well. Cannot be used with Postgres.
END
}
attribute "enabled" {
type = bool
description = <<-END
True if backup configuration is enabled.
END
}
attribute "start_time" {
type = string
description = <<-END
`HH:MM` format time indicating when backup configuration starts.
END
}
attribute "point_in_time_recovery_enabled" {
type = bool
description = <<-END
True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. Valid only for PostgreSQL instances.
END
}
attribute "location" {
type = string
description = <<-END
The region where the backup will be stored.
END
}
attribute "transaction_log_retention_days" {
type = number
description = <<-END
The number of days of transaction logs we retain for point in time restore, from 1-7.
END
}
attribute "backup_retention_settings" {
type = list(backup_retention_setting)
description = <<-END
A List of backup retention settings.
END
readme_example = <<-END
backup_retention_settings = [{
retained_backups = 3
retention_unit = "COUNT"
}]
END
attribute "retained_backups" {
type = number
description = <<-END
Depending on the value of `retention_unit`, this is used to determine if a backup needs to be deleted. If `retention_unit` is `COUNT`, we will retain this many backups.
END
}
attribute "retention_unit" {
type = string
default = "COUNT"
description = <<-END
The unit that `retained_backups` represents.
END
}
}
}
variable "ip_configuration" {
type = object(ip_configuration)
description = <<-END
An object of ip configuration.
END
readme_example = <<-END
ip_configuration = {
ipv4_enabled = true
}
END
attribute "ipv4_enabled" {
type = bool
description = <<-END
Whether this Cloud SQL instance should be assigned a public IPV4 address. At least `ipv4_enabled` must be enabled or a `private_network` must be configured.
END
}
attribute "private_network" {
type = string
description = <<-END
The VPC network from which the Cloud SQL instance is accessible for private IP. For example, `projects/myProject/global/networks/default`. Specifying a network enables private IP. At least `ipv4_enabled` must be enabled or a `private_network` must be configured. This setting can be updated, but it cannot be removed after it is set. This setting only works if the VPC network has a peering connection configured with `servicenetworking.googleapis.com`.
END
}
attribute "require_ssl" {
type = bool
description = <<-END
Whether SSL connections over IP are enforced or not.
END
}
attribute "ssl_mode" {
type = string
description = <<-END
Specify how SSL connection should be enforced in DB connections.
To change this field, also set the correspoding value in require_ssl.
Check the value pairs [API reference](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/instances#ipconfiguration)
END
}
attribute "allocated_ip_range " {
type = string
description = <<-END
The name of the allocated ip range for the private ip CloudSQL instance.
For example: `google-managed-services-default`. If set, the instance
ip will be created in the allocated range. The range name must
comply with [RFC 1035](https://tools.ietf.org/html/rfc1035).
Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?`.
END
}
attribute "authorized_networks" {
type = list(authorized_network)
description = <<-END
A List of public IPs/networks authorized to access the CloudSQL instance.
END
readme_example = <<-END
authorized_networks = [{
value = "35.35.35.35/32"
}]
END
attribute "expiration_time" {
type = string
description = <<-END
The RFC 3339 formatted date time string indicating when this whitelist expires.
END
}
attribute "name" {
type = string
description = <<-END
A name for this whitelist entry.
END
}
attribute "value" {
required = true
type = string
description = <<-END
A CIDR notation **public** IPv4 or IPv6 address that is allowed to access this instance. Must be set even if other two attributes are not for the whitelist to become active.
END
}
}
attribute "psc_config" {
type = list(psc_config)
description = <<-END
Settings for Private Service Connect.
END
readme_example = <<-END
psc_enabled = true
allowed_consumer_projects = ["test123"]
END
attribute "psc_enabled" {
type = bool
description = <<-END
Whether PSC connectivity is enabled for this instance.
END
}
attribute "allowed_consumer_projects" {
type = list(string)
description = <<-END
List of consumer projects that are allow-listed for PSC connections to this instance.
END
}
}
}
variable "location_preference" {
type = object(location_preference)
description = <<-END
An object of location preferences.
END
readme_example = <<-END
location_preference = {
zone = "us-central1-a"
}
END
attribute "follow_gae_application" {
type = string
description = <<-END
A GAE application whose zone to remain in. Must be in the same region as this instance.
END
}
attribute "zone" {
type = string
description = <<-END
The preferred compute engine zone.
END
}
}
variable "maintenance_window" {
type = object(maintenance_window)
description = <<-END
An object of maintenance window.
END
readme_example = <<-END
maintenance_window = {
day = 1
hour = 0
update_track = "stable"
}
END
attribute "day" {
type = number
description = <<-END
Day of week (1-7), starting on Monday.
END
}
attribute "hour" {
type = number
description = <<-END
Hour of day (0-23), ignored if day not set.
END
}
attribute "update_track" {
type = string
description = <<-END
Receive updates earlier `canary` or later `stable`.
END
}
}
variable "deny_maintenance_period" {
type = object(deny_maintenance_period)
description = <<-END
An object of maintenance window.
END
readme_example = <<-END
deny_maintenance_period = {
start_date = "2020-11-01"
end_date = "2020-11-01"
time = "00:00:00"
}
END
attribute "start_date" {
type = string
description = <<-END
(Required) "deny maintenance period" start date.
If the year of the start date is empty, the year of the end date also must be empty.
In this case, it means the deny maintenance period recurs every year.
END
}
attribute "end_date" {
type = string
description = <<-END
(Required) "deny maintenance period" end date.
If the year of the end date is empty, the year of the start date also must be empty.
In this case, it means the no maintenance interval recurs every year.
END
}
attribute "time" {
type = string
description = <<-END
(Required) Time in UTC when the "deny maintenance period" starts on startDate and ends on endDate.
END
}
}
variable "insights_config" {
type = object(insights_config)
description = <<-END
An object of insight config.
END
readme_example = <<-END
insights_config = {
query_insights_enabled = true
}
END
attribute "query_insights_enabled" {
type = bool
description = <<-END
True if Query Insights feature is enabled.
END
}
attribute "query_string_length" {
type = number
default = 1024
description = <<-END
Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
END
}
attribute "record_application_tags" {
type = bool
description = <<-END
True if Query Insights will record application tags from query when enabled.
END
}
attribute "record_client_address" {
type = bool
description = <<-END
True if Query Insights will record client address when enabled.
END
}
}
variable "password_validation_policy" {
type = object(password_validation_policy)
description = <<-END
An object of password_validation_policy config.
END
readme_example = <<-END
password_validation_policy = {
min_length = 15
complexity = "COMPLEXITY_DEFAULT"
reuse_interval = 10
disallow_username_substring = true
password_change_interval = "10d"
enable_password_policy = true
}
END
attribute "min_length" {
type = number
description = <<-END
Specifies the minimum number of characters that the password must have.
END
}
attribute "complexity" {
type = string
description = <<-END
Checks if the password is a combination of lowercase, uppercase, numeric, and non-alphanumeric characters.
END
}
attribute "reuse_interval" {
type = number
description = <<-END
Specifies the number of previous passwords that you can't reuse.
END
}
attribute "disallow_username_substring" {
type = bool
description = <<-END
Prevents the use of the username in the password.
END
}
attribute "password_change_interval" {
type = string
description = <<-END
Specifies the minimum duration after which you can change the password.
END
}
attribute "enable_password_policy" {
type = bool
description = <<-END
Enables or disable the password validation policy.
END
}
}
variable "data_cache_config" {
type = object(advanced_machine_features)
description = <<-END
An object if data cache config.
END
readme_example = <<-END
data_cache_config = {
data_cache_enabled = true
}
END
attribute "data_cache_enabled" {
type = bool
description = <<-END
Whether data cache is enabled for the instance (MYSQL,PostgreSQL).
END
}
}
variable "replica_configuration" {
type = object(replica_configuration)
description = <<-END
An object of replica configuration.
END
readme_example = <<-END
replica_configuration = {
failover_target = true
}
END
attribute "ca_certificate" {
type = string
description = <<-END
PEM representation of the trusted CA's x509 certificate.
END
}
attribute "client_certificate" {
type = string
description = <<-END
PEM representation of the replica's x509 certificate.
END
}
attribute "client_key" {
type = string
description = <<-END
PEM representation of the replica's private key. The corresponding public key in encoded in the `client_certificate`.
END
}
attribute "connect_retry_interval" {
type = number
default = 60
description = <<-END
The number of seconds between connect retries.
END
}
attribute "dump_file_path" {
type = string
description = <<-END
Path to a SQL file in GCS from which replica instances are created. Format is `gs://bucket/filename`.
END
}
attribute "failover_target" {
type = bool
description = <<-END
Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance.
END
}
attribute "master_heartbeat_period" {
type = number
description = <<-END
Time in ms between replication heartbeats.
END
}
attribute "password" {
type = string
description = <<-END
Password for the replication connection.
END
}
attribute "ssl_cipher" {
type = string
description = <<-END
Permissible ciphers for use in SSL encryption.
END
}
attribute "username" {
type = string
description = <<-END
Username for replication connection.
END
}
attribute "verify_server_certificate" {
type = bool
description = <<-END
True if the master's common name value is checked during the SSL handshake.
END
}
}
variable "module_timeouts" {
type = map(module_timeout)
description = <<-END
`resource_timeouts` are keyed by resource type and define default timeouts for various terraform operations (see [Operation Timeouts](https://www.terraform.io/docs/language/resources/syntax.html#operation-timeouts))
END
readme_example = <<-END
module_timeouts = {
google_sql_database_instance = {
create = "30m"
update = "30m"
delete = "30m"
}
}
END
attribute "google_sql_database_instance" {
type = map(string)
default = "30m"
description = <<-END
- **`create`**: _(Optional)_
Used for sql database instance creation.
Default is `"30m"`.
- **`update`**: _(Optional)_
Used for sql database instance manipulation.
Default is `"30m"`.
- **`delete`**: _(Optional)_
Used for sql database instance deletion.
Default is `"30m"`.
END
}
attribute "google_sql_database" {
type = map(string)
default = "15m"
description = <<-END
- **`create`**: _(Optional)_
Used for sql database creation.
Default is `"15m"`.
- **`update`**: _(Optional)_
Used for sql database manipulation.
Default is `"10m"`.
- **`delete`**: _(Optional)_
Used for sql database deletion.
Default is `"10m"`.
END
}
attribute "google_sql_ssl_cert" {
type = map(string)
default = "10m"
description = <<-END
- **`create`**: _(Optional)_
Used for sql user creation.
Default is `"10m"`.
- **`delete`**: _(Optional)_
Used for sql user deletion.
Default is `"10m"`.
END
}
attribute "google_sql_user" {
type = map(string)
default = "10m"
description = <<-END
- **`create`**: _(Optional)_
Used for sql user creation.
Default is `"10m"`.
- **`update`**: _(Optional)_
Used for sql user manipulation.
Default is `"10m"`.
- **`delete`**: _(Optional)_
Used for sql user deletion.
Default is `"10m"`.
END
}
}
}
section {
title = "Extended Resource Configuration"
variable "sql_databases" {
type = list(sql_database)
description = <<-END
A list of SQL databases.
END
readme_example = <<-END
sql_databases = [{
name = "db"
}]
END
attribute "name" {
required = true
type = string
description = <<-END
The Name of the database.
END
}
attribute "charset" {
type = string
description = <<-END
The charset value. Postgres databases only support a value of `UTF8` at creation time.
END
}
attribute "collation" {
type = string
description = <<-END
The collation value. Postgres databases only support a value of `en_US.UTF8` at creation time.
END
}
attribute "deletion_policy" {
type = string
description = <<-END
(Optional) The deletion policy for the database.
Possible values are: "ABANDON", "DELETE". Defaults to "DELETE".
END
}
}
variable "sql_ssl_certs" {
type = list(sql_ssl_cert)
description = <<-END
List of SQL SSL certs. You can create up to 10 client certificates for each instance.
END
readme_example = <<-END
sql_ssl_certs = [{
common_name = "ssl-name"
}]
END
attribute "common_name" {
required = true
type = string
description = <<-END
The common name to be used in the certificate to identify the client. Constrained to [a-zA-Z.-_ ]+. Changing this forces a new resource to be created.
END
}
}
variable "sql_users" {
type = list(sql_user)
description = <<-END
List of SQL users.
END
readme_example = <<-END
sql_users = [{
name = "user"
password = "changeme"
}]
END
attribute "name" {
required = true
type = string
description = <<-END
The Name of the user.
END
}
attribute "password" {
type = string
description = <<-END
The password for the user. Can be updated. For Postgres instances this is a Required field.
END
}
attribute "type" {
type = string
description = <<-END
The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type. Flags include `BUILT_IN`, `CLOUD_IAM_USER`, or `CLOUD_IAM_SERVICE_ACCOUNT`.
END
}
attribute "deletion_policy" {
type = string
description = <<-END
The deletion policy for the user. Setting `ABANDON` allows the resource to be abandoned rather than deleted. This is useful for Postgres, where users cannot be deleted from the API if they have been granted SQL roles. Possible values are: `ABANDON`.
END
}
attribute "host" {
type = string
description = <<-END
The host the user can connect from. This is only supported for MySQL instances. Don't set this field for PostgreSQL instances. Can be an IP address. Changing this forces a new resource to be created.
END
}