Skip to content

Conversation

880831ian
Copy link
Contributor

Description

Add missing additional_cluster_dns_ips variable definition and forwarding in the main module file node_group.tf.

Motivation and Context

The additional_cluster_dns_ips variable was not previously declared or passed in the main module (node_group.tf). This caused issues when attempting to use self.additional_cluster_dns_ips as an input to downstream modules such as self-managed-node-group and _user_data.

By explicitly defining and forwarding the variable, this fix enables proper DNS IP customization for NodeLocal DNS and similar use cases.

Breaking Changes

No breaking changes. This PR only adds support for an optional input variable.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@880831ian 880831ian changed the title fix: add missing additional_cluster_dns_ips to main module fix(node_group): add missing additional_cluster_dns_ips Jun 8, 2025
@880831ian 880831ian changed the title fix(node_group): add missing additional_cluster_dns_ips fix(node_group): enable use of additional_cluster_dns_ips in self-managed-node-group and _user_data modules Jun 8, 2025
@880831ian 880831ian changed the title fix(node_group): enable use of additional_cluster_dns_ips in self-managed-node-group and _user_data modules fix: Add missing additional_cluster_dns_ips to main module Jun 8, 2025
@880831ian
Copy link
Contributor Author

Hi, just a note for reviewers:

I’ve tested this change using the following example:
examples/self-managed-node-group/eks-bottlerocket.tf

Without explicitly adding the additional_cluster_dns_ips variable in the root node_group.tf, it’s not possible to pass this value correctly to the self-managed-node-group and _user_data modules. This causes the additional_cluster_dns_ips setting to be silently ignored.

This patch ensures that the value can be propagated properly through the module chain.

Thanks!

@bryantbiggs
Copy link
Member

what OS/AMI are you using?

@880831ian
Copy link
Contributor Author

what OS/AMI are you using?

I’m using the BOTTLEROCKET_x86_64 AMI type in the node group configuration, as defined in the example:
examples/self-managed-node-group/eks-bottlerocket.tf

@bryantbiggs bryantbiggs changed the title fix: Add missing additional_cluster_dns_ips to main module fix: Ensure additional_cluster_dns_ips is passed through from root module Jun 9, 2025
@bryantbiggs bryantbiggs merged commit 7a83b1b into terraform-aws-modules:master Jun 9, 2025
23 of 26 checks passed
antonbabenko pushed a commit that referenced this pull request Jun 9, 2025
## [20.36.1](v20.36.0...v20.36.1) (2025-06-09)

### Bug Fixes

* Ensure `additional_cluster_dns_ips` is passed through from root module ([#3376](#3376)) ([7a83b1b](7a83b1b))
@antonbabenko
Copy link
Member

This PR is included in version 20.36.1 🎉

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants