Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 8c9412a

Browse files
committed
Fix ebs_block_devices type
1 parent e49dc0e commit 8c9412a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/couchbase-cluster/variables.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ variable "root_volume_iops" {
122122

123123
variable "ebs_block_devices" {
124124
description = "A list of EBS volumes to attach to each EC2 Instance. Each item in the list should be an object with the keys 'device_name', 'volume_type', 'volume_size', 'iops', 'delete_on_termination', and 'encrypted', as defined here: https://www.terraform.io/docs/providers/aws/r/launch_configuration.html#block-devices. We recommend using one EBS Volume for the Couchbase data dir and another one for the index dir."
125-
# We can't narrow the inner type down more than "any" because if we use object, then all the fields will be required
126-
# (whereas some, such as encrypted, should be optional), and if we use map, all the values must be of the same type,
127-
# whereas some here are strings, some are bools, and some are ints.
128-
type = list(any)
125+
# We can't narrow the type down more than "any" because if we use list(object(...)), then all the fields in the
126+
# object will be required (whereas some, such as encrypted, should be optional), and if we use list(map(...)), all
127+
# the values in the map must be of the same type, whereas we need some to be strings, some to be bools, and some to
128+
# be ints. So, we have to fall back to just any ugly "any."
129+
type = any
129130
default = []
130131
# Example:
131132
#

0 commit comments

Comments
 (0)