Category "terraform"

How to load file not using hashicorp/template in terraform

Apple M1 chip doesn't support hashicorp/template and which result in the below error ╷ │ Error: Incompatible provider version │ │ Provi

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/etc" sou

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/etc" sou

How to create or import an Azure API Connection (Microsoft.Web) using Terraform?

My requirement is to create a Logic App that will receive some inputs from other resources like Azure Data Factory and send out an email. I created this setup u

PG bouncer running on vm instance stops connecting to cloud sql

The issue: I'm not sure how to begin problem solving this or where to look for errors. Setup: Running a node.js backend via GCR and it's hitting a postgres db o

How can I use locals defined in terragrunt.hcl in Terraform files?

I've created this folder structure: . ├── main.tf └── terragrunt.hcl # FILE: terragrunt.hcl include { path = find_in_par

terraform data archive file source directory with selected files and directories

I want to create a data archive_file with selected files and folders as source_dir. I have the folder structure as below. Within the src directory, I have lambd

AWS Terraform tried to destroy and rebuild RDS cluster

I have an RDS cluster I built using Terraform, this is running deletion protection currently. When I update my Terraform script for something (example security

Attaching VM Scale Set to Application Gateway's backend pool

Can anyone provide an example of how to add an Azure VM Scale Set (VMSS) to an application gateway's backend pool using Terraform. I can only find one example

Azure: Activating AGIC for existing Application Gateway via Terraform does not work completely

if I activate AGIC for AKS via Terraform for an existing Application Gateway: addon_profile { ingress_application_gateway { enabled = true

Terraform script for provisioning azure Virtual machine scale set along with custom data or cloud init

I would like to know the terraform script for provisioning azure Virtual machine scale set along with custom data or cloud init. I tried many ways to run my scr

Terraform - iterate over nested map

I am trying to create IAM binding for Bigquery dataset using the resource - google_bigquery_dataset_iam_binding. The requirement is I read the parameters in thi

Error while configuring Terraform S3 Backend

I am configuring S3 backend through terraform for AWS. terraform { backend "s3" {} } On providing the values for (S3 backend) bucket name, key & regio

Application Insights duplicated logs

I have a .net core API running under Azure Kubernetes service, with Application Insights provisioned with Terraform. When viewing Application Insights in the Az

How to install terraform 0.12 in an alpine container with apk?

I want to add terraform version 0.12.21 in an alpine container, but I can only add 0.11.0 using apk. If I try to add it as the desired version I get the follow

Terragrunt provider.tf generation not generating files

The expectation is that when running a terragrunt run-all apply from the root directory, a provider.tf file will be created in the sub directories. I've verifie

Terraform: Reference locals values inside the creation block

Is it possible to reference another locals value inside the creation of a locals value? The example below was the smallest and simplest example I could come up

Terraform: wait till the instance is "reachable"

I have some Terraform code with an aws_instance and a null_resource: resource "aws_instance" "example" { ami = data.aws_ami.server.id instance_ty

WAF for all ALBs in an account using terraform

This is my waf.tf terraform file: resource "aws_wafv2_web_acl" "waf_acl-dev" { name = "waf_log4j_Protections-dev" description = "WAFv2 for dev"

Authenticating with Azure Repos git module sources in an Azure Pipelines build

I'm currently creating a pipeline for Azure DevOps to validate and apply a Terraform configuration to different subscription. My terraform configuration uses m