-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Not able to create worker group into existing eks cluster (conditional creation) #861
Comments
This module creates a cluster. There is currently no way to use it to add workers to an existing cluster. There have been suggestions in the past about pulling the module apart to allow for reusable components, whilst keeping the top level module as a one-shot solution. A recent discussion about it happened in #774 |
@dpiddockcmp thanks for acknowledging it. keep a watch on #774 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity since being marked as stale. |
It is possible to conditionally create workers using this module. I tested my method today, and it works. You need to use a conditional expression as outlined here: https://www.terraform.io/docs/language/expressions/conditionals.html Instead of defining a worker group list in the module, put this in the module:
Your actual worker list will be inside the local. And if you set your See below for a complete example:
And while this next part has nothing to do with the solution, it's a handy little tip for how that ami_id_copy was created in my example worker_group:
|
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. |
Not able to conditionally create eks resources (worker group) to existing cluster created by this module. We came across Conditional creation section - terraform-aws-eks
FYI - we have another module called
eks
which creates this cluster using terraform-aws-eks now we are trying to find ways to create worker group by creating separate module (Conditional Creation). I don't want worker group to be part eks cluster creation module.What is the current behaviour?
Looks like It is trying to create new cluster as opposed to creating only worker group for existing cluster.
If this is a bug, how to reproduce? Please include a code sample if relevant.
My configuration looks like -
cluster_name
we are passing through variable to discover existing cluster.What's the expected behavior?
It should allow us to create worker group within existing cluster.
Environment details
Any other relevant info
Using Terragrunt
The text was updated successfully, but these errors were encountered: