Category "terraform"

How to create a Hashicorp Vault user using Terraform

I am trying to create a Vault user in Terraform but can't seem to find the appropriate command to do so. I've searched the Terraform Registry and also performed

Terraform / atlantis creates locks for no apparent reason

I have set up atlantis and configured multiple projects. I am not using workspaces (therefore, for each project only the default workspace should be applicable)

Terraform check if resource exists before creating it

Is there a way in Terraform to check if a resource in Google Cloud exists prior to trying to create it? I want to check if the following resources below exist i

Terraform file for gcp, how to input path for json key

I am studying trying to learning how to deploy using Terraform in gcp. Would anyone know how to write the path for the json key in the configuration file mentio

length of keys in a map in Terraform - odd output

Given: variable "foo" { type = map default = { lorem = "ipsum" dolor = "sit" } } then, in Terraform console, why does [for k, v in var.foo : leng

I want to assign UAMI to kubelet, but it fails due to lack of permissions

I'm trying to assign UAMI to an AKS kubelet using terraform, but I don't have permissions and it fails with the following error. Error: creating Managed Kuberne

Terraform fails to create ingress (could not find the requested resource ingresses.extensions)

I'm using minikube locally. The following is the .tf file I use to create my kubernetes cluster: provider "kubernetes" { config_path = "~/.kube/config" } res

Comparing: should I choose Terraform gcp modules or google gcp modules from git

I'm trying to serve a landing zone on GCP. I'm looking to get a starting repo and I found that terraform is exposing a foundation github repo with GCP modules w

Create Azure service health alert in Terraform

I just found out, if we create Azure service health alert with Terraform, with below code: resource "azurerm_monitor_activity_log_alert" "servicehealth" { nam

Terraform: use output of one module in another module

I have a module called vpc and another module called ecs. I'm trying to reference the AWS subnets created in the vpc module in ecs. Here's what I have, so far:

Terraform error: String required even after variable was declared as string

yesterday I asked a question to which I received a solution and updated everything which kind of seemed to remove the error. Now I have a new error. Here are th

How to enable Azure DevOps for Key-vault Access using Terraform

I have an azure devops pipeline with terraform to provision a private keyvault. Since I am using azure managed agents to run the pipeline jobs, it fails as the

Unable to create a map variable with Terraform

I'm trying to create a variable in my variables file which I thought I could do with a map, but it's not working. In my variables.tf file, I have: boot_disk = l

terraform init creating a new workspace in automation

I have looked on the Internets but did not find anything close to an answer. I have the following main.tf : terraform { cloud { organization = "my-organiz

Terraform - AWS Auto-Scaling-Group not deleting when using Suspended-Policy option for 'Terminate'

I've searched online and not found an answer to this anywhere, so apologies if it is a replicate of another question. I've created a CloudFormation Template fro

What's the difference between Terraform's kubernetes_config_map and kubernetes_config_map_v1 and kubernetes_config_map_v1_data?

I'm not clear what the difference is between kubernetes_config_map, kubernetes_config_map_v1andkubernetes_config_map_v1_data`? e.g. https://registry.terraform.i

How to integrate terraform state into github action workflow?

I have the github action workflow outlining the simple process of spinning up terraform to create resources in Azure. What I am missing is how to integrate the

How to use terraform to store connection string from SQL Managed Instance in Azure Key vault

I am using terraform to deploy a SQL managed instance and need to store the 4 connection strings that come with it in azure key vault. According to terraform do

How do I speed up the running of terraform deployments using threading?

When creating terraform deployments, I have to wait until the command completes before running the next command. If I have multiple deployments in parallel - (t

Internal Exception while creating AWS FMS Policy for CloudFront

I am getting below error while creating firewall manager policy for cloud front distribution. the documentation provide little details on how to deploy a Cloudf