Most viewed questions in Terraform

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

Jun 10, 2020 in Terraform by MD
• 95,460 points
30,062 views
0 votes
1 answer

How to remove a resource from Terraform state?

Hi@akhtar, First, you need to remove the resource ...READ MORE

Dec 7, 2020 in Terraform by MD
• 95,460 points
29,377 views
0 votes
1 answer

How to check the installed version of Terraform?

Hi@akhtar, To check the version, launch Windows PowerShell ...READ MORE

Sep 29, 2020 in Terraform by MD
• 95,460 points
26,920 views
0 votes
1 answer

How to block public access to S3 bucket using Terraform?

Hi@akhtar, To control the access of the S3 ...READ MORE

Sep 9, 2020 in Terraform by MD
• 95,460 points
13,930 views
0 votes
1 answer

How to read data from a file in Terraform?

Hi@akhtar, You can use the file function in Terraform. This file function ...READ MORE

Jul 27, 2020 in Terraform by MD
• 95,460 points
13,806 views
0 votes
1 answer

Error refreshing state: AccessDenied: Access Denied status code: 403

Hi@akhtar, I also faced the same issue. Then ...READ MORE

Sep 9, 2020 in Terraform by MD
• 95,460 points
13,657 views
0 votes
1 answer

How to import manually created s3 bucket in Terraform?

Hi@akhtar, Terraform will not able to get the ...READ MORE

Sep 11, 2020 in Terraform by MD
• 95,460 points
12,894 views
0 votes
1 answer

How to create a folder in S3 bucket using terraform?

Hi@akhtar, You can use aws_s3_bucket_object resource to create one ...READ MORE

Jun 11, 2020 in Terraform by MD
• 95,460 points
11,494 views
+1 vote
1 answer

Error: MalformedPolicyDocumentException: The new key policy will not allow you to update the key policy in the future.

Hi, I think there is a problem with ...READ MORE

Aug 10, 2020 in Terraform by MD
• 95,460 points
9,695 views
0 votes
1 answer

How to attach an EBS volume to EC2 instance using terraform?

Hi@akhtar, You can use aws_volume_attachment resource to attach ...READ MORE

Jun 12, 2020 in Terraform by MD
• 95,460 points
9,108 views
0 votes
1 answer

How to create a namespace in the Kubernetes cluster using Terraform?

Hi@akhtar, You can use kubernetes_namespace resource in your ...READ MORE

Sep 14, 2020 in Terraform by MD
• 95,460 points
9,105 views
0 votes
1 answer

How to attach Elastic IP in EC2 instance using Terraform code?

Hi@akhtar, You can use aws_eip resource in your ...READ MORE

Jul 22, 2020 in Terraform by MD
• 95,460 points
8,838 views
+2 votes
1 answer

can we start and stop EC2 instance using Terraform?

Hi@Lakshminarayanan, You can use command inside your local-exec ...READ MORE

Aug 17, 2020 in Terraform by MD
• 95,460 points
7,798 views
0 votes
1 answer

Error: error executing "/tmp/terraform_1104475889.sh": Process exited with status 1

Hi@akhtar, You are trying to run a remote ...READ MORE

Jun 15, 2020 in Terraform by MD
• 95,460 points
7,629 views
0 votes
1 answer

How to do ssh in EC2 instance using Terraform?

Hi@akhtar, To ssh in your EC2 instance, you ...READ MORE

Jun 15, 2020 in Terraform by MD
• 95,460 points
7,379 views
0 votes
1 answer

How to manage AWS multiple regions and availability zones using terraform?

Hi, When you run your Terraform code it ...READ MORE

Jul 21, 2020 in Terraform by MD
• 95,460 points
7,067 views
0 votes
1 answer

Error: Error loading zone 'us-central1-a': googleapi: Error 403: Permission denied on resource project Nadeem-gcp-production., forbidden

Hi@akhtar, It seems you didn't enable a billing ...READ MORE

Sep 12, 2020 in Terraform by MD
• 95,460 points
7,040 views
0 votes
1 answer

Error putting object in S3 bucket (example11225588): NoSuchBucket: The specified bucket does not exist

Hi@akhtar, You are trying to upload something in ...READ MORE

Jun 12, 2020 in Terraform by MD
• 95,460 points
6,588 views
0 votes
1 answer
0 votes
1 answer

How to read input from CSV file or any file instead of using tfvars file in Terraform?

Hi, You can use the file function in Terraform. ...READ MORE

Jul 27, 2020 in Terraform by MD
• 95,460 points
6,156 views
+2 votes
1 answer

Error: Error creating route: RouteAlreadyExists: The route identified by 0.0.0.0/0 already exists.

Hi@Lakshminarayanan, First thing I want to suggest you ...READ MORE

Aug 10, 2020 in Terraform by MD
• 95,460 points
6,134 views
0 votes
1 answer

How to create a route table in AWS using Terraform code?

Hi@akhtar, You can use aws_route_table resources in your ...READ MORE

Jul 21, 2020 in Terraform by MD
• 95,460 points
6,060 views
0 votes
1 answer

How does local-exec provisioner work in Terraform?

Hi@akhtar, You can use a local-exec provisioner to ...READ MORE

Jul 23, 2020 in Terraform by MD
• 95,460 points
6,039 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

Sep 11, 2020 in Terraform by MD
• 95,460 points
5,356 views
0 votes
1 answer

What does Terraform refresh really do?

Hi@akhtar, The terraform refresh command is used to reconcile the ...READ MORE

Dec 7, 2020 in Terraform by MD
• 95,460 points
5,094 views
0 votes
1 answer

How to add a route for IGW in AWS using Terraform code?

Hi@akhtar, Terraform has one keyword named route. It allows ...READ MORE

Jul 22, 2020 in Terraform by MD
• 95,460 points
4,856 views
0 votes
1 answer

Error:No credentials loaded. To use your gcloud credentials, run 'gcloud auth application-default login'.

Hi@akhtar, You are trying to connect the GCP ...READ MORE

Sep 12, 2020 in Terraform by MD
• 95,460 points
4,826 views
0 votes
1 answer

How to launch EC2 windows instance with powershell script using terraform?

Hi, In your Terraform code, you have written ...READ MORE

Jul 21, 2020 in Terraform by MD
• 95,460 points
4,795 views
0 votes
1 answer
0 votes
1 answer

error deleting S3 Bucket (example11225588): BucketNotEmpty: The bucket you tried to delete is not empty

Hi@akhtar, Your bucket is mounted to a folder. ...READ MORE

Jun 14, 2020 in Terraform by MD
• 95,460 points
4,565 views
0 votes
1 answer

Terraform template to create SNS topic with subscription of mail id

Hi@Lakshminarayanan, For SNS topic, you can use aws_sns_topic_subscription resource ...READ MORE

Jul 7, 2020 in Terraform by MD
• 95,460 points
4,505 views
+2 votes
1 answer

How to create elastic load balancer using Terraform?

Hi@akhtar, You can use an aws_elb load balancer ...READ MORE

Aug 17, 2020 in Terraform by MD
• 95,460 points
4,122 views
0 votes
1 answer

How to create one s3 bucket using terraform?

Hi@akhtar, You can use aws_s3_bucket resources to create ...READ MORE

Jun 12, 2020 in Terraform by MD
• 95,460 points
4,052 views
0 votes
1 answer

What is the null resource in Terraform?

Hi@akhtar, The null_resource resource implements the standard resource ...READ MORE

Sep 29, 2020 in Terraform by MD
• 95,460 points
3,933 views
0 votes
1 answer

What is the remote-exec provisioner in Terraform?

Hi@akhtar, You can use a remote-exec provisioner to ...READ MORE

Jul 23, 2020 in Terraform by MD
• 95,460 points
3,808 views
0 votes
1 answer

Create configMap in Kubernetes using Terraform Script.

Hi@akhtar, You can use the kubernetes_config_map resource in ...READ MORE

Sep 28, 2020 in Terraform by MD
• 95,460 points
3,759 views
0 votes
1 answer

How to get LoadBalancer IP in Kubernetes using Terraform script?

Hi@akhtar, In your Terraform script, you can output ...READ MORE

Sep 28, 2020 in Terraform by MD
• 95,460 points
3,597 views
0 votes
1 answer

How to launch one Pod in Minikube using Terraform?

Hi@akhtar, You can use kubernetes_pod resource to launch ...READ MORE

Jun 16, 2020 in Terraform by MD
• 95,460 points
3,555 views
0 votes
1 answer

How to create a folder inside S3 Bucket using Terraform code?

Hi@akhtar, You can create a folder at the ...READ MORE

Jul 23, 2020 in Terraform by MD
• 95,460 points
3,263 views
0 votes
2 answers

Where do I get Hashicorp certified Terraform associate dumps or exam questions for practice?

From my personal experience, i have used ...READ MORE

Dec 15, 2020 in Terraform by kodilil
• 440 points
3,144 views
0 votes
1 answer

An argument named "versioning" is not expected here. Did you mean to define a block of type "versioning"?

Hi@akhtar, The error is telling that you need ...READ MORE

Dec 1, 2020 in Terraform by MD
• 95,460 points
3,142 views
0 votes
1 answer

How to use dynamic resource names in Terraform?

Hi@akhtar, I recommend using a different workspace for each ...READ MORE

Dec 7, 2020 in Terraform by MD
• 95,460 points
3,116 views
0 votes
1 answer

Error: Error putting object in S3 bucket (example11225588): AccessDenied: Access Denied

Hi@akhtar, To upload your file in the s3 ...READ MORE

Jun 11, 2020 in Terraform by MD
• 95,460 points
3,112 views
0 votes
1 answer

Error: Error creating route: InvalidParameterValue: Route target is not supported. This route only supports interface and instance targets.

Hi@akhtar, In the route you use internet gateway ...READ MORE

Jul 21, 2020 in Terraform by MD
• 95,460 points
3,096 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

Aug 17, 2020 in Terraform by MD
• 95,460 points
3,021 views
0 votes
1 answer

Create a secret in Kubernetes using Terraform.

Hi@akhtar, Terraform has resource to create a secret ...READ MORE

Sep 28, 2020 in Terraform by MD
• 95,460 points
2,843 views
0 votes
1 answer

How to create a rds snapshot from running rds instance in AWS using terraform?

Hi, I think you can use aws_db_instance resource to ...READ MORE

Jul 20, 2020 in Terraform by MD
• 95,460 points
2,802 views
0 votes
1 answer

How to configure AWS MFA for Terraform?

Hi@akhtar, You can specify assume_role in your AWS ...READ MORE

Sep 30, 2020 in Terraform by MD
• 95,460 points
2,792 views