-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ERROR Creating EKS Node Group: InvalidRequestException: Cannot specify instance types in launch template and API Request #1386
Comments
Can you please share your configuration ? It sounds like you're passing wrong instance types to the LT. |
Hi @barryib , Follow my files .tf launchtemplate.tf
main.tf
versions.tf
data.tf
provider.tf
locals.tfLocal variableslocals { Terraform State Backendtfstate_namespace = "${var.org}-${var.product}" #-----------------------------------------------------------------------------------------------------------------# EKS Clustercluster_iam_role_name = "" cluster_encryption_config = [ bastion_host_security_group_id = "" node_group_gp = {
} node_group_lg = {
} #-----------------------------------------------------------------------------------------------------------------# VPCvpc_id = "" } |
Hi @barryib , How are you doing? Do you have any updates about this error? Thanks. |
This looks similar to #1211, and I'm able to reproduce the error with the current example code for 'launch_templates_with_managed_node_groups' with a custom launch template on module version v16.2.0. Removing the |
It's hard for me to read you code, because it's not formated correctly. I suspect that you're passing something which is not supported in a Managed Node Group launch template. Furthermore, if your needs are simples, you can set |
Hi @barryib , I will test setting Thanks. |
@barryib i tried to create empty launch template only containing instance type and still getting same error:
Error:
|
AWS API seems be rejecting a requests, I propose you to enable debug on terraform by setting env variable More info about debug: |
@daroga0002 ok i resolved it by adding |
So does this was some misconfigurstion on your side or bug in module? Can you paste here your module invocation code showing change? |
Not sure if i could name it misconfiguration, it isn't stated explicitly anywhere
|
I can confirm this also fixes the problem for me, using the launch_templates_with_managed_node_groups example. |
Using |
yes same here instance_types = [] solved it |
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. |
|
I'm still experiencing this issue in 17.1.0 |
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. |
Description
When I try to create a managed node group using the launch template I am giving the error below:
Versions
Reproduction
Steps to reproduce the behavior:
I'm trying to deploy EKS and Nodes Groups using the example launch_templates_with_managed_node_groups as a model.
And I'm using Git Bash to run the terraform commands.
Code Snippet to Reproduce
Example launch_templates_with_managed_node_groups
Expected behavior
Actual behavior
After I runned the commando terraform apply -auto-approve show this error below:
Terminal Output Screenshot(s)
Additional context
N/A
The text was updated successfully, but these errors were encountered: