Top "Terraform" questions

A tool from Hashicorp used for defining infrastructure as code.

Convert AWS CloudFormation to Terraform template

I want to convert the existing AWS CloudFormation templates (yaml) to Terraform templates(hcl) automatically. Can anyone please suggest some …

amazon-web-services amazon-cloudformation terraform
Initial setup of terraform backend using terraform

I'm just getting started with terraform and I'd like to be able to use AWS S3 as my backend for …

amazon-s3 terraform
How to use dynamic resource names in Terraform?

I would like to use the same terraform template for several dev and production environments. My approach: As I understand …

terraform
How to apply SQL Scripts on RDS with Terraform

I´m using Terraform to create a script that builds some EC2 Servers and a MySQL RDS (using AWS Amazon …

terraform
Is there a way to nuke all AWS resources in an AWS account?

I have an AWS account where multiple EC2 instances, load balancers, target groups, security groups etc are setup by multiple …

amazon-web-services terraform
Should I commit .tfstate files to Git?

I am a little bit puzzled on the question whether to commit .tfstate files to Git or not. The Terraform …

git terraform
Terraform 0.12 nested for loops

I am trying to implement nested for loops using Terraform 0.12's new features in order to loop through AWS IAM …

nested-loops terraform
How To Run kubectl apply commands in terraform

I have developed a terraform script to create a k8 cluster on GKE. Post successful creation of cluster, I have …

kubernetes terraform google-kubernetes-engine
Using Terraform to import existing resources on Azure

I have an existing resource group on Azure with a VM running on it and have been playing around with …

azure azure-virtual-machine terraform terraform-provider-azure
Multiple user_data File use in Terraform

I am trying to have a common user_data file for common tasks such as folder creation and certain package …

terraform user-data