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

Managed node group example does not run #2175

Closed
sondrelg opened this issue Jul 22, 2022 · 5 comments
Closed

Managed node group example does not run #2175

sondrelg opened this issue Jul 22, 2022 · 5 comments

Comments

@sondrelg
Copy link

sondrelg commented Jul 22, 2022

I've been trying to adapt the node group example for a while, and finally thought I'd give up and just copy the entire example 1:1. Unfortunately it seems to not work. I get 13 errors when running it.

I'm guessing the examples are curated for aws version 3*

My versions:

❯ terraform --version                     
Terraform v1.2.5
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v4.23.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.12.1
+ provider registry.terraform.io/hashicorp/tls v4.0.0

Errors:

❯ terraform apply
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 38, in module "eks":
│   38:   cluster_name                    = local.name
│ 
│ An argument named "cluster_name" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 39, in module "eks":
│   39:   cluster_version                 = local.cluster_version
│ 
│ An argument named "cluster_version" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 40, in module "eks":
│   40:   cluster_endpoint_private_access = true
│ 
│ An argument named "cluster_endpoint_private_access" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 41, in module "eks":
│   41:   cluster_endpoint_public_access  = true
│ 
│ An argument named "cluster_endpoint_public_access" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 44, in module "eks":
│   44:   cluster_ip_family = "ipv6"
│ 
│ An argument named "cluster_ip_family" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 52, in module "eks":
│   52:   create_cni_ipv6_iam_policy = true
│ 
│ An argument named "create_cni_ipv6_iam_policy" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 54, in module "eks":
│   54:   cluster_addons = {
│ 
│ An argument named "cluster_addons" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 65, in module "eks":
│   65:   cluster_encryption_config = [{
│ 
│ An argument named "cluster_encryption_config" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 70, in module "eks":
│   70:   cluster_tags = {
│ 
│ An argument named "cluster_tags" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 77, in module "eks":
│   77:   vpc_id     = module.vpc.vpc_id
│ 
│ An argument named "vpc_id" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 78, in module "eks":
│   78:   subnet_ids = module.vpc.private_subnets
│ 
│ An argument named "subnet_ids" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 80, in module "eks":
│   80:   manage_aws_auth_configmap = true
│ 
│ An argument named "manage_aws_auth_configmap" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 83, in module "eks":
│   83:   cluster_security_group_additional_rules = {
│ 
│ An argument named "cluster_security_group_additional_rules" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 95, in module "eks":
│   95:   node_security_group_ntp_ipv6_cidr_block = ["fd00:ec2::123/128"]
│ 
│ An argument named "node_security_group_ntp_ipv6_cidr_block" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 96, in module "eks":
│   96:   node_security_group_additional_rules = {
│ 
│ An argument named "node_security_group_additional_rules" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 116, in module "eks":
│  116:   eks_managed_node_group_defaults = {
│ 
│ An argument named "eks_managed_node_group_defaults" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 128, in module "eks":
│  128:   eks_managed_node_groups = {
│ 
│ An argument named "eks_managed_node_groups" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 350, in module "eks":
│  350:   tags = local.tags
│ 
│ An argument named "tags" is not expected here.
╵
@kawak1320
Copy link

same here, not being able to fix it... i'm a student, btw!

@bryantbiggs
Copy link
Member

The example is working locally for me

provider registry.terraform.io/hashicorp/tls v4.0.0

Is known to have an issue which is why v18.26.6 was released

@sondrelg
Copy link
Author

Ok I'll give it another try in a bit and report back 👍 Thanks 🙂

@sondrelg
Copy link
Author

You are right sir, sorry for the false report 👍 Thanks for the swift response!

@github-actions
Copy link

github-actions bot commented Nov 9, 2022

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 9, 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

No branches or pull requests

3 participants