Why I am getting error while using terraform validate- An input variable with the name "project" has not been declared. This variable can be declared with a variable "project" {} block?

0 votes
Oct 24 in Terraform by sonali
• 120 points

recategorized Oct 27 by MD 79 views

1 answer to this question.

0 votes
Hi@sonali,

There may be syntax errors in your Terraform code. Check your code properly. If you get the same error, then paste your code here.
answered Oct 27 by MD
• 77,580 points

Related Questions In Terraform

0 votes
1 answer

How to set an IAM policy for a project in GCP using Terraform?

Hi@akhtar, You can create a policy and give ...READ MORE

answered Sep 13 in Terraform by akhtar
• 32,960 points
87 views
0 votes
1 answer

How to copy the content of an s3 bucket to another s3 bucket using Terraform?

Hi@akhtar, There is no resource that enables the ...READ MORE

answered Sep 10 in Terraform by MD
• 77,580 points
383 views
0 votes
1 answer

Create a project in GCP using Terraform.

Hi@akhtar, Terraform has a resource named google_project. This ...READ MORE

answered Sep 13 in Terraform by MD
• 77,580 points
79 views
0 votes
1 answer

'terraform' is not recognized as an internal or external command, operable program or batch file.

Hi@akhtar, You have to set an environment variable ...READ MORE

answered Jun 10 in Terraform by MD
• 77,580 points
1,328 views
0 votes
1 answer

How to integrate kubernetes with Terraform?

Hi@akhtar, You can use Kubernetes as your Terraform ...READ MORE

answered Jun 16 in Terraform by MD
• 77,580 points
150 views
0 votes
1 answer

How to connect OpenStack Cloud with Terraform?

Hi@akhtar, To connect any Cloud, Terraform has a ...READ MORE

answered Jul 5 in OpenStack by MD
• 77,580 points
132 views
+2 votes
1 answer

How to attach an elastic load balancer with ec2 instance using Terraform?

Hi@akhtar, You can use aws_elb_attachment resource in Terraform. ...READ MORE

answered Aug 17 in Terraform by MD
• 77,580 points
495 views