Category "terraform"

Terraform Error: Error locking state: Error acquiring the state lock: 2 errors occurred:

I tried terraform versions v0.12.26 and v0.13.3. Both failed. terraform plan Acquiring state lock. This may take a few moments... Error: Error locking state: Er

Can we convert exisiting aws single AZ Fsx to multi-az fsx

I have a single AZ aws windows Fsx created with 3 months of data. it was created using terraform. Can I convert the existing single-az to multi-az without any d

Can we convert exisiting aws single AZ Fsx to multi-az fsx

I have a single AZ aws windows Fsx created with 3 months of data. it was created using terraform. Can I convert the existing single-az to multi-az without any d

How to fix kubernetes_config_map resource error on a newly provisioned EKS cluster via terraform?

I'm using Terraform to provision an EKS cluster (mostly following the example here). At the end of the tutorial, there's a method of outputting the configmap th

How to hook up Terraform to create Cloud Build Triggers that pull from a private bitbucket Repo In the GCP

I am setting up a terraform plan in order to create a cloud build trigger in the google cloud provider. However the steps outlined in the terraform documentatio

How to hook up Terraform to create Cloud Build Triggers that pull from a private bitbucket Repo In the GCP

I am setting up a terraform plan in order to create a cloud build trigger in the google cloud provider. However the steps outlined in the terraform documentatio

Azure devops Variables and Terraform

I am trying to create a azure key vault with the help of terraform where i want to save my DB password in my azure devops pipeline because obviously I cannot ha

Global resources when using workspaces

With Workspaces, you can use the same config for multiple environments, say, dev and prod. However, you only need to create certain resources once e.g DNS. I wi

Monitoring GCP Projects with Terraform

I have a "Monitor" project in Google Cloud and want it to monitor the metrics of several other projects. On the Cloud Console, I can easily add these projects t

The Terraform CLI get a Error: ID was missing the `slots` element

I am executing terraform.exe apply on windows and receive the error: azurerm_subnet.subnet: Refreshing state... [id=<...>] azurerm_app_service_plan.servic

Create multiple rules in AWS security Group

I tried to create an AWS security group with multiple inbound rules, Normally we need to multiple ingresses in the sg for multiple inbound rules. Instead of cre

How AWS Credentials works at GitHub Actions With MFA

Not able to create s3 bucket from terraform code to create s3 bucket. I have code uses: hashicorp/terraform-github-actions/[email protected] env: TF_AC

How to print terraform variable values?

I am learning terraform. I want to print values of variables in "plan" stage. So I found how to do it. seems I am doing something wrong here.... in variables.tf

Linking a series of GCP disks to corresponding instances dynamically in terraform

I need to dynamically create a variable number of riak instances, each with an attached disk across multiple zones in GCP using terraform. Each attached disk mu

is it possible to read values from a tfvars file in Jenkins?

I have some terraform code that uses a map of tfvars to deploy multiple lambdas to Aws. it all works fine except I want to run the script in a Jenkins pipeline

Terraform enable VM Insights

Did someone managed to enable via terraforms Insights for a VM? i'm able to create a VM, enable logging, but not enable insights.. i've seen this question: but

Using terraform, unable to add SSM document to aws_cloudwatch_event_target

I'm very new to Terraform and am trying use it to replicate what I've successfully created via the AWS console. I'm trying to specify a "SSM Run Command" as a

Create multiple scalable role_assignments in Terraform

i have been tasked to write the below code with minimal lines, rather having 3 resource blocks can this be done in a single block using for_each function. It sh

Cannot override provider configuration error in installing DC/OS via Terraform on azure

Working on setting up DC/OS on Microsoft Azure using Terraform. I'm using the main.tf provided in the official documentation. Every time I run terraform init I

How to access variables in a list / object in Terraform?

In Terraform, how can access the values from the variable below? variable "egress_rules" { type = list(object({ from_port = number to_port = number