We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ef8871 commit eff1031Copy full SHA for eff1031
terraform/main.tf
@@ -16,4 +16,9 @@ resource "juju_application" "machine_postgresql" {
16
units = var.units
17
constraints = var.constraints
18
config = var.config
19
+
20
+ dynamic "expose" {
21
+ for_each = var.enable_expose ? [1] : []
22
+ content {}
23
+ }
24
}
terraform/variables.tf
@@ -50,3 +50,9 @@ variable "config" {
50
type = map(string)
51
default = {}
52
53
54
+variable "enable_expose" {
55
+ type = bool
56
+ default = true
57
+ description = "Whether to expose the application"
58
+}
0 commit comments