File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module "cluster_nodes" {
11
11
node_files_toupload = var. nodes [count . index ]. node_files_toupload
12
12
node_config_script = var. node_config_script
13
13
security_groups = var. security_groups
14
- node_image = var. node_image
14
+ node_image = var. nodes [ count . index ] . node_image != null ? var . nodes [ count . index ] . node_image : var . node_image
15
15
jq_download_url = var. jq_download_url
16
16
command_timeout_seconds = var. command_timeout_seconds
17
17
asg_lifecycle_hook_heartbeat_timeout = var. asg_lifecycle_hook_heartbeat_timeout
Original file line number Diff line number Diff line change 1
1
variable "nodes" {
2
2
type = list (object ({
3
3
node_ip = string
4
+ node_image = optional (string )
4
5
node_subnet_id = string
5
6
node_files_toupload = optional (list (object ({
6
7
contents = string
@@ -9,6 +10,7 @@ variable "nodes" {
9
10
}))
10
11
description = << EOT
11
12
node_ip = IP address of the cluster node. This should be available within the subnet.
13
+ node_image = image for node of the cluster node.
12
14
node_subnet_id = Id of the subnet where node should be created.
13
15
node_files_toupload = list of file to be uploaded per node. These can be cluster confi files etc.
14
16
node_files_toupload.contents = Base64 encoded contents of the file to be uploaded on the node.
You can’t perform that action at this time.
0 commit comments