Top "Terraform" questions

A tool from Hashicorp used for defining infrastructure as code.

Variable keys in terraform maps

In Terraform, I'm trying to create a module with that includes a map with variable keys. I'm not sure if …

terraform
Is it possible to turn the access_logs block on and off via the environment_name variable?

I'm looking at using the new conditionals in Terraform v0.11 to basically turn a config block on or off depending …

if-statement conditional-statements terraform
How do I create an SSH key in Terraform?

I need to spin up a bunch of EC2 boxes for different users. Each user should be sandboxed from all …

amazon-web-services terraform terraform-provider-aws
Upgrade Terraform version

I'm start using Terraform and I'm following the project updates on his Github repository. I see new releases are available …

terraform
How to create a Terraform with if, else, elsif statement?

I'm setting up a terraform module to create an aurora cluster. I need to have an option for cross region …

terraform terraform-provider-aws
Best practices when using Terraform

I'm in the process of swapping over our infrastructure into terraform. What's the best practice for actually managing the terraform …

continuous-integration terraform
Use terraform to set up a lambda function triggered by a scheduled event source

I would like to run an AWS lambda function every five minutes. In the AWS Management Console this is easy …

amazon-web-services terraform
How do you do simple string concatenation in Terraform?

I must be being incredibly stupid but I can't figure out how to do simple string concatenation in Terraform. I …

terraform terraform0.11
Getting an Environment Variable in Terraform configuration?

I have two environment variables. One is TF_VAR_UN and another is TF_VAR_PW. Then I have a …

configuration terraform
Terraform: correct way to attach AWS managed policies to a role?

I want to attach one of the pre-existing AWS managed roles to a policy, here's my current code: resource "aws_…

amazon-web-services amazon-iam terraform