File tree Expand file tree Collapse file tree
elastio-terraform-deployment/module Expand file tree Collapse file tree Original file line number Diff line number Diff 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 = [
@@ -158,7 +159,8 @@ locals {
158159 elastio_cloud_connector_deploy_requests = [
159160 for connector in var . elastio_cloud_connectors : merge (
160161 connector ,
161- { account_id = data.aws_caller_identity.current.account_id },
162+ { account_id = data.aws_caller_identity.current.account_id,
163+ network_configuration = var.network_configuration },
162164 )
163165 ]
164166}
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ variable "elastio_cloud_connectors" {
1919
2020 type = list (object ({
2121 region = string
22- vpc_id = string
23- subnet_ids = list (string )
22+ vpc_id = optional ( string )
23+ subnet_ids = optional ( list (string ) )
2424
2525 s3_access_logging = optional (object ({
2626 target_bucket = string
@@ -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+ }
You can’t perform that action at this time.
0 commit comments