aws-samples / aws-samples/eks-node-group-with-warm-pool
TF Code not working
- Dominant language
- Shell
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Please find the details below
Error: Invalid function argument
│
│ on .terraform/modules/smng/modules/_user_data/main.tf line 4, in locals:
│ 3: int_linux_default_user_data = var.create && var.platform == "linux" && (var.enable_bootstrap_user_data || var.user_data_template_path != "") ? base64encode(templatefile(
│ 4: coalesce(var.user_data_template_path, "${path.module}/../../templates/linux_user_data.tpl"),
│ 5: {
│ 6: # https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html#launch-template-custom-ami
│ 7: enable_bootstrap_user_data = var.enable_bootstrap_user_data
│ 8: # Required to bootstrap node
│ 9: cluster_name = var.cluster_name
│ 10: cluster_endpoint = var.cluster_endpoint
│ 11: cluster_auth_base64 = var.cluster_auth_base64
│ 12: # Optional
│ 13: cluster_service_ipv4_cidr = var.cluster_service_ipv4_cidr != null ? var.cluster_service_ipv4_cidr : ""
│ 14: bootstrap_extra_args = var.bootstrap_extra_args
│ 15: pre_bootstrap_user_data = var.pre_bootstrap_user_data
│ 16: post_bootstrap_user_data = var.post_bootstrap_user_data
│ 17: }
│ 18: )) : ""
│ ├────────────────
│ │ while calling templatefile(path, vars)
│ │ path.module is ".terraform/modules/smng/modules/_user_data"
│ │ var.user_data_template_path is "../user_data/user-data"
│
│ Invalid value for "path" parameter: failed to read file: read ../user_data/user-data: is a directory.
Contributor guide
Assessment
This issue has not been assessed yet.