Top "Terraform" questions

A tool from Hashicorp used for defining infrastructure as code.

How to create a folder in an amazon S3 bucket using terraform

I was able to create a bucket in an amazon S3 using this link. I used the following code to …

amazon-web-services amazon-s3 directory bucket terraform
Terraform depends_on with modules

I'm new at terraform and I created a custom azure policies on module structure. each policy represents a custom module. …

azure terraform terraform-provider-azure
Different environments for Terraform (Hashicorp)

I've been using Terraform to build my AWS stack and have been enjoying it. If it was to be used …

terraform
How to get an object from a list of objects in Terraform?

I have the following list of objects variable: variable "objects" { type = "list" description = "list of objects default = [ { id = "name1" attribute = "…

terraform
Referring to resources named with variables in Terraform

I'm trying to create a module in Terraform that can be instantiated multiple times with different variable inputs. Within the …

terraform
Conditional attributes in Terraform

Does Terraform support conditional attributes? I only want to use an attribute depending on a variable's value. Example: resource "aws_…

terraform terraform-provider-aws
How to add an ssh key to an GCP instance using terraform?

So I have a terraform script that creates instances in Google Cloud Platform, I want to be able to have …

ssh google-cloud-platform terraform
map list of maps to a list of selected field values in terraform

If resources use a count parameter to specify multi resources in terraform there is a simple syntax for providing a …

terraform
Why can't terraform SSH in to EC2 Instance using supplied example?

I'm using the AWS Two-tier example and I've direct copy-n-pasted the whole thing. terraform apply works right up to where …

amazon-web-services ssh amazon-ec2 sdn terraform
Best way currently to create an ansible inventory from terraform

I have a long list of machines, all of which are a little different in functionality in a system. I'd …

ansible terraform