Category "terraform"

Enable kubernetes nginx ingress compression in terraform configuration

using helm bitnami chart nginx-ingress-controller and also this terraform code to create the controller, how to enable the gzip request compression? it seems to

Terraform S3 Bucket Object's etag keeps updating on each apply

I am uploading AWS Lambda code into an S3 bucket as zip files. I have a resource declared for the S3 bucket object: resource "aws_s3_bucket_object" "source-co

Terraform plan showing differences after importing resources from deleted state

The infrastructure was built into AWS with Terraform source code. The state files are gone and now i'm trying to import the existing infrastructure into Terrafo

Terraform 'Failed to instantiate provider' for GCP error on Mac OS X

Yesterday, Terraform was working fine on my Mac OS X laptop. Today I started using it, and I'm getting an error I've never seen before. I am using the google cl

Terraform combine variables using locals

I want to combine 2 variables. I tried to use locales but I couldn't get the final result also even with flatten Any other recommendation? I tried to use this s

issue iteration over "aws_wafv2_regex_pattern_set" terraform wafv2

I am facing issue in terraform wafv2. Currently i am stuck in while creating the aws_wafv2_regex_pattern_set resource. The aim is regular expression with loop i

Create aws_db_subnet_group with terraform throw Error creating DB Subnet Group: InvalidParameterValue

I'm using terraform to create an RDS instance, to do so I need to have an aws_db_subnet_group resource. I can create the RDS using an aws_db_subnet_group create

terraform statefile is locked how do I unlock it [closed]

I have used terraform state list but it is showing that you can't read due to tfstate file is locked. How do I unlock and get state of deployi

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 my terraform script also add my ssh key to the instances

Terraform: modules + output from for_each

I have a Terraform script using modules. I want to create multiple resources so I'm using the for_each method. Below is my variable configuration: variable brid

How to make terraform delete an EKS cluster including the AWS resources created by kubernetes?

I use terraform to create an environment in AWS. The environment also contains a EKS cluster, which integrates in AWS and creates some resources there. (For exa

Terraform error refreshing state access denied

I'm using gitbucket for both my repository and for pipelines. I have a terraform config file with a remote state configured which runs fine on my local machine

Azure + Terraform + Grabbing a variable and passing it along

Hopefully someone can push me in the right direction. I have a Terraform plan that currently stands up a Linux VM in Azure. I am attempting to run a bash script

Terraform how to output object id that were created using count

I have a terraform module that creates 2 subnets. I need somehow to get the output for each subnet. When using the [count.index] as part of the output block I'm

Quotation causing error in ETL with terraform

I'm trying to convert my data from csv to parquet while performing cleansing. I keep getting an error when moving my data from one bucket to the next! I figured

How can I name eks worker nodes provisioned with terraform?

I am using terraform 12.20.0 and I have provisioned an EKS cluster with 2 node groups. How can I add name tags to EKS node workers according to their node group

Azure Databricks workspace using terraform

Trying to create Databricks workspace using terraform but unsupported arguments: resource "azurerm_databricks_workspace" "workspace" { name = "

How to check if string contains a substring in terraform interpolation?

How do you check if a terraform string contains another string? For example, I want to treat terraform workspaces with "tmp" in the name specially (e.g. allowi

Terraform: Using versioned modules stored in AWS CodeCommit

Currently have a repository for terraform modules stored in AWS CodeCommit. Between Dev and Prod we want to use the same repository for the modules but be able

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 using terraform. we tried file provisioner : bu