We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41a6616 commit b8e18faCopy full SHA for b8e18fa
aws/cluster/main.tf
@@ -48,7 +48,7 @@ module "node_groups" {
48
role = module.node_role.instance
49
subnets = values(data.aws_subnet.private)
50
tags = var.tags
51
- user_data = var.user_data
+ user_data = lookup(var.user_data, each.key, null)
52
53
depends_on = [module.node_role]
54
}
aws/cluster/variables.tf
@@ -43,7 +43,7 @@ variable "tags" {
43
44
45
variable "user_data" {
46
- type = string
+ type = map(string)
47
description = "Optional user data script for the launch template"
- default = null # Default to an empty string if no user data is provided
+ default = {} # Default to an empty string if no user data is provided
0 commit comments