terraform-aws-modules / terraform-aws-eks

Terraform module to create Amazon Elastic Kubernetes (EKS) resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/eks/aws
Apache License 2.0
4.46k stars 4.08k forks source link

Error: Variables not allowed while running terraform apply #442

Closed rajuyce closed 5 years ago

rajuyce commented 5 years ago

I have issues

I'm submitting a...

[root@linux01 terraform-aws-eks]# terraform apply var.cluster_name Name of the EKS cluster. Also used as a prefix in names of related resources.

Enter a value: firsteks

var.subnets A list of subnets to place the EKS cluster and workers within.

Enter a value:

var.vpc_id VPC where the cluster and workers will be deployed.

Enter a value:

provider.aws.region The region where AWS operations will take place. Examples are us-east-1, us-west-2, etc.

Enter a value: us-east-1

Error: Variables not allowed

on line 1: (source code not available)

Variables may not be used here.

[root@linux01 terraform-aws-eks]

What is the current behavior?

If this is a bug, how to reproduce? Please include a code sample if relevant.

What's the expected behavior?

Are you able to fix this problem and submit a PR? Link here if you have already.

Not able to fix

Environment details

Using default variables

Any other relevant info

max-rocket-internet commented 5 years ago

You're not supposed to run terraform from the root of this repo. Try from examples/basic 🙂

github-actions[bot] commented 1 year ago

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.