Most answered questions in Terraform

0 votes
1 answer

How to create an EFS in AWS from Terraform Code?

Hi@MD, You can use aws_efs_file_system resource in Terraform. ...READ MORE

Sep 9, 2020 in Terraform by akhtar
• 38,260 points
1,674 views
0 votes
1 answer

How to launch one EC2 instance for WordPress using Terraform?

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

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

Terraform output: Error: module “rds”: “monitoring_role_arn” is not a valid argument

Hi@mgb, I have checked the document. You are ...READ MORE

Sep 3, 2020 in Terraform by MD
• 95,460 points
1,732 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,117 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,255 views
+2 votes
1 answer

What is the difference between modules and workspaces in Terraform?

Hi@akhtar, I think a key difference between Terraform ...READ MORE

Aug 17, 2020 in Terraform by MD
• 95,460 points
2,592 views
+2 votes
1 answer

How to create a workspace in terraform?

Hi@MD, Terraform has a command named terraform workspace. ...READ MORE

Aug 17, 2020 in Terraform by akhtar
• 38,260 points
1,227 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,928 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,420 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
10,020 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
14,015 views
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,325 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,945 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,177 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,452 views
0 votes
1 answer

How to create one S3 bucket in AWS using Terraform?

Hi@akhtar, You need to set aws provider name ...READ MORE

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

What is data source in Terraform?

Hi@akhtar, Data sources allow data to be fetched or ...READ MORE

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

What is a Terraform provider?

Hi@akhtar, Terraform is agnostic to the underlying cloud ...READ MORE

Jul 23, 2020 in Terraform by MD
• 95,460 points
1,110 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
5,024 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,988 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,206 views
0 votes
1 answer

How to create Internet gateway in AWS usng Terraform?

Hi@akhtar, You can find one resource named aws_internet_gateway. ...READ MORE

Jul 21, 2020 in Terraform by MD
• 95,460 points
2,575 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,258 views
0 votes
1 answer

How to create a VPC in AWS using Terraform?

Hi@akhtar, You can find the script in the ...READ MORE

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

How to import module in Terraform code?

Hi@akhtar, A module is a container for multiple resources that ...READ MORE

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

How to create a variable in Terraform?

Hi@akhtar, Terraform has an inbuilt variable keyword to ...READ MORE

Jul 21, 2020 in Terraform by MD
• 95,460 points
1,031 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
5,189 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,371 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,957 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,673 views
0 votes
1 answer

List down all namespaces in minikube using Terraform.

Hi@akhtar, You can use data source in Terraform. ...READ MORE

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

How to create a namespace in minikube using Terraform?

Hi@akhtar, You can use kubernetes_namespace resource. It is used ...READ MORE

Jun 30, 2020 in Terraform by MD
• 95,460 points
2,112 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,763 views
0 votes
1 answer

How to integrate kubernetes with Terraform?

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

Jun 16, 2020 in Terraform by MD
• 95,460 points
1,205 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,595 views
0 votes
1 answer

How to run local command using terraform?

Hi@akhtar, You can use provisioner keyword to run ...READ MORE

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

* Error: "field_name": this field cannot be set

Hi@akhtar, You are likely using an older version ...READ MORE

Jun 15, 2020 in Terraform by MD
• 95,460 points
1,351 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,839 views
0 votes
1 answer

Error: Inappropriate value for attribute "content": string required.

Hi@MD, You have to pass in which format ...READ MORE

Jun 15, 2020 in Terraform by akhtar
• 38,260 points
2,711 views
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,743 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,191 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,773 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,285 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,733 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,242 views
0 votes
1 answer

How to create one key in AWS using terraform?

Hi@akhtar, You can use aws_key_pair resource n terraform. ...READ MORE

Jun 11, 2020 in Terraform by MD
• 95,460 points
1,870 views
0 votes
1 answer
0 votes
1 answer
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,701 views
0 votes
0 answers

I tried to run terraform init and i keep keep getting an error message

terraform : The term 'terraform' is not ...READ MORE

Jul 22, 2022 in Terraform by Pride Cho

edited Mar 4 255 views