Skip to content

Commit d86faa7

Browse files
committed
Add network configuration CFN param
1 parent dc01576 commit d86faa7

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

elastio-terraform-deployment/module/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ locals {
3838
disableCustomerManagedIamPolicies = var.disable_customer_managed_iam_policies
3939
disableServiceLinkedRolesCreation = var.service_linked_roles == "tf"
4040
supportRoleExpirationDate = var.support_role_expiration_date
41+
networkConfiguration = var.network_configuration,
4142
}
4243

4344
enriched_connectors = [

elastio-terraform-deployment/module/variables.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,19 @@ variable "support_role_expiration_date" {
198198
type = string
199199
default = null
200200
}
201+
202+
variable "network_configuration" {
203+
description = <<DESCR
204+
Allow to choose between the Elastio-managed network (`Auto`)
205+
or a manually configured network (`Manual`).
206+
DESCR
207+
208+
type = string
209+
default = "Manual"
210+
nullable = false
211+
212+
validation {
213+
condition = contains(["Auto", "Manual"], var.network_configuration)
214+
error_message = "network_configuration must be one of 'Auto', 'Manual'"
215+
}
216+
}

0 commit comments

Comments
 (0)