Category "terraform"

Github Actions Homebrew Install Terraform version lags behind

In GitHub actions, you have the luxury of installing packages with homebrew. At least, that was my opinion up until recently. I personally think homebrew is a c

How to Terraform Lake formation Governed Tables

Just looking to get an answer for a Terraform question. I'm interested in using Governed Tables in Lake Formation and using Terraform to allocate the resources.

Unable to attach the certificate from a keyvault in a different subscription to an app service

The app service is in subscription1 and the keyvault is in subscription2, I want to attach the certificate in the keyvault to the appservice during the terrafor

Adding different threshold values to in different instances using terraform

I am trying to add different threshold values to different instances ids in tf. But i am not able to find if loop in terraform. Is there any way to give differe

502 Bad Gateway from Azure Application Gateway Connecting to Azure Container Instance

I am working on learning Terraform and Azure Web Services. After following a series of tutorials, I've been working on getting an Azure Container Instance setup

Best way to manage Terraform apply infra -AWS batch- run a script (could take 1hr to 1day) - destroy infra

Hi All I am planning to build a system for my team where we can start a AWS batch infra - run a task - once job done destroy the infra. I am thinking of : Make

Using Terraform's helm_release, how do I set array or list values?

For example, per the helm chart documentation for Drupal, the default value for accessModes is ["ReadWriteOnce"] which translates to the following in the YAML:

How to include file from terraform source module in terragrunt?

I have two repos, one contains terragrunt configuration and the other contains terraform code. I would like to include a file in terragrunt configuration that i

How to destroy resources created using terraform in azure devops pipeline by using PowerShell

I have a project where I'm using Terraform in Azure DevOps Pipeline create Infrastructure but want to destroy the infrastructure in a PowerShell script running

Context root redirect for AWS Application Load Balancer using terraform

I have an AWS ALB that I need to add a context-root redirect but I can not figure out the syntax in Terraform. I want this url to automatically go to this url.

Terraform not accepting block parameters on "web_app" Module

I am trying to create a web app through Terraform, the new azurerm provider 3.0 has come out and so the new module azurerm_windows_web_app. The documentation st

How to Extract the variable values from terraform variables.tf file using PowerShell commands

I have a variables.tf file which contains all the project variables and im trying to fetch a variable values using PowerShell. variables.tf variable "products"

Terraform provider restrictions

I'm encountering problems when trying to run terraform init -upgrade: ╷ │ Error: Failed to query available provider packages │ │ Could n

(Terraform) Error 400: Invalid request: instance name (pg_instance)., invalid

On GCP, I'm trying to create a Cloud SQL instance with this Terraform code below: resource "google_sql_database_instance" "postgres" { name =

How does Kubernetes and Terraform work seamlessly together and what role do they each undertake?

I am a bit confused about the individual roles of Kubernetes and Terraform when using them both on a project. Until very recently, I had a very clear understand

constructing reference call with for_each in line

Whats going on? I have created a couple of "google_compute_health_check" on GCP To re-use the health checks, my variables refer to whatever health_check they n

Subnet is showing as destroyed in terraform destroy but it is not getting removed from azure portal

I have written a module called network_resources in which I am creating vnets and subnets attached to it. Below is the code for the module and how the module is

Adding a Private Key Environment Variable to Windows

I am trying to assign an environment variable in Windows from the contents of a RSA Private Key File. In Linux this is easily accomplished with the export comma

Is there a way to execute an EC2 Action with a CloudWatch Alarm in Terraform?

Following this guide: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html I have alarms created to alert me on StatusCheckFail

terraform combine 2 objects with 2 attributes for aws instance_ids

Following hashicorp doc to leverage for_each to provision multiple instance using local var map. I am unable to get the instance_ids into a single lists for out