Top "Terraform-template-file" questions

using count.index in terraform?

I am trying to generate a bunch of files from templates - I need to replace the hardcoded 1 with the …

terraform terraform-template-file
How do I run terraform init from a different folder?

I want to script terraform for CI/CD purpose and I don't like CDing in scripts, I rather have specific …

windows terraform terraform-template-file
How do you create an archive file in Terraform?

I have this code in terraform: data "archive_file" "lambdazip" { type = "zip" output_path = "lambda_launcher.zip" source_dir = "lambda/…

terraform terraform-template-file
terraform copy/upload files to aws ec2 instance

We have cronjob and shell script which we want to copy or upload to aws ec2 instance while creating instance …

terraform terraform-provider-aws terraform-template-file
Commands in user_data are not executed in terraform

Hi EC2 instance is created, but commands as part of userdata.sh are not gettingexecuted. When I manually connect to …

terraform terraform-provider-aws terraform-template-file
terraform-kubernetes-provider how to create secret from file?

I'm using the terraform kubernetes-provider and I'd like to translate something like this kubectl command into TF: kubectl create secret …

kubernetes terraform terraform-template-file
Terraform: How to use multiple locals and Variables inside "for_each"

I have a terraform template that creates multiple EC2 instances. I then create a few Elastic Network interfaces in the …

terraform terraform-provider-aws terraform-template-file