Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing security group assignment for self managed nodes #1859

Closed
IvanDechovsky opened this issue Feb 9, 2022 · 2 comments · Fixed by #1861
Closed

Confusing security group assignment for self managed nodes #1859

IvanDechovsky opened this issue Feb 9, 2022 · 2 comments · Fixed by #1861

Comments

@IvanDechovsky
Copy link
Contributor

Description

When configuring a custom security group for self managed nodes, you have two variables in the root module:

create_node_security_group       = false
node_security_group_id           = aws_security_group.self_managed_nodes.id

With this set, I would expect that security group to be attached to the nodes. However, if i follow the variable in the module, I see it gets assigned to the local in node-groups.tf

node_security_group_id = local.create_node_sg ? aws_security_group.node[0].id : var.node_security_group_id

but that local is not used anywhere. More specifically, I would expect that it is passed in here in vpc_security_group_ids.

Currently, to make it work I need to set the two root variables like above and also

  self_managed_node_group_defaults = {
    vpc_security_group_ids                   = [aws_security_group.self_managed_nodes.id]
    ....
    }

Is this intended? I think, it would be nice if I didn't also have to set it in the defaults of the node groups.

@antonbabenko
Copy link
Member

This issue has been resolved in version 18.5.1 🎉

@github-actions
Copy link

I'm going to lock this issue 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 similar to this, 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 Nov 14, 2022
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 a pull request may close this issue.

3 participants