Top "Terraform" questions

A tool from Hashicorp used for defining infrastructure as code.

In Terraform, how do you specify an API Gateway endpoint with a variable in the request path?

In AWS API Gateway, I have a endpoint defined as /users/{userId}/someAction, and I'm trying to recreate this with …

amazon-web-services aws-api-gateway terraform
How to configure environment variables in Hashicorp Terraform

I'm quite new to Terraform, though I have gone through all of the instructional modules available on Hashicorp's site. Currently, …

terraform terraform-provider-azure
Terraform: How to run remote-exec more than once?

I have noticed that terraform will only run "file", "remote-exec" or "local-exec" on resources once. Once a resource is provisioned …

ansible terraform idempotent
What does terraform refresh really do?

While using terraform to deploy a fairly large infrastructure in AWS, our remote tfstate got corrupted and was deleted. From …

amazon-web-services terraform
How to ignore change of an attribute in block

I'm deploying web apps in Azure and I'd like to ignore changes to scm_type attribute within site_config block. …

terraform terraform-provider-azure terraform0.12+
unknown token IDENT list error for IP address variable

I have defined variable in my .tfvars variable as variables.tfvars address_space = ["10.197.0.0/16"] build-windows.tf variable "address_space" { type = list } …

terraform terraform-provider-azure
Terraform - Upload file to S3 on every apply

I need to upload a folder to S3 Bucket. But when I apply for the first time. It just uploads. …

amazon-web-services amazon-s3 terraform terraform-provider-aws
Terraform - refactoring modules: Error: Provider configuration not present

I'm refactoring some Terraform modules and am getting: Error: Provider configuration not present To work with module.my_module.some_…

terraform terraform-modules
Get current working directory in terraform

I am running Terraform using Terragrunt so I am not actually certain about the path that the terraform is invoked …

terraform terragrunt
Multiple availability zones with terraform on AWS

The VPC I'm working on has 3 logical tiers: Web, App and DB. For each tier there is one subnet in …

amazon-web-services amazon-ec2 terraform availability-zone