Skip to content

Commit ac9f93c

Browse files
committed
move all provider configs to vars in ex
1 parent 7b77805 commit ac9f93c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

examples/complete/providers.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ provider "postgresql" {
66
username = var.db_username
77
port = var.db_port
88
password = var.db_password
9-
superuser = false
10-
sslmode = "disable"
9+
superuser = var.db_superuser
10+
sslmode = var.db_sslmode
1111
}

examples/complete/variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ variable "db_scheme" {
2525
description = "The scheme of the database instance."
2626
}
2727

28+
variable "db_superuser" {
29+
type = bool
30+
description = "Whether the database instance is a superuser."
31+
}
32+
33+
variable "db_sslmode" {
34+
type = string
35+
description = "The SSL mode of the database instance."
36+
}
37+
2838
variable "databases" {
2939
type = list(object({
3040
name = string

0 commit comments

Comments
 (0)