Skip to content

Commit bd4827d

Browse files
authored
Merge pull request #7 from prashantkalkar/node_level_image
Updated to support image override at node level.
2 parents adb2a2f + 9a8f73c commit bd4827d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module "cluster_nodes" {
1111
node_files_toupload = var.nodes[count.index].node_files_toupload
1212
node_config_script = var.node_config_script
1313
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
1515
jq_download_url = var.jq_download_url
1616
command_timeout_seconds = var.command_timeout_seconds
1717
asg_lifecycle_hook_heartbeat_timeout = var.asg_lifecycle_hook_heartbeat_timeout

variables.tf

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
variable "nodes" {
22
type = list(object({
33
node_ip = string
4+
node_image = optional(string)
45
node_subnet_id = string
56
node_files_toupload = optional(list(object({
67
contents = string
@@ -9,6 +10,7 @@ variable "nodes" {
910
}))
1011
description = <<EOT
1112
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.
1214
node_subnet_id = Id of the subnet where node should be created.
1315
node_files_toupload = list of file to be uploaded per node. These can be cluster confi files etc.
1416
node_files_toupload.contents = Base64 encoded contents of the file to be uploaded on the node.

0 commit comments

Comments
 (0)