Category "terraform"

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

Error assigning Synapse role using Terraform

i am trying to assign an in-bulit role in Synapse through Terraform but i get an Error. This is what I'm trying to do: resource "azurerm_synapse_role_assignment

aws elasticbeanstalk terraform plan does not show sensitive setting

I am using terraform to provision elasticbeanstalk and there have been no changes in my template but still when I try to plan, it shows me below: # module.ab

Terraform: The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ValidateProviderConfig call

The plugin logs may contain more details I am trying to deploy an EKS cluster in the eu-central-1 region on aws in terraform. What am I doing wrong here? This i

Azure devops pipeline terraform error - 403 when attempting role assignment

I'm attempting to deploy an aks cluster and role assignment for the system assigned managed identity that is created via terraform but I'm getting a 403 respons

Login error for admin SQL Server during terraform plan

I'm building an Azure infrastructure with terraform. I need to create a specific user of the DB for each DB in the server. To create the users I use the provide

Tagging autoscaling groups created by EKS

I created an AWS EKS Cluster with the terraform-aws-eks module. Terraform version is 1.0.6, aws provider version is 3.60.0. With these versions i should be able

Terraform outputs 'Error: Variables not allowed' when doing a plan

I've got a variable declared in my variables.tf like this: variable "MyAmi" { type = map(string) } but when I do: terraform plan -var 'MyAmi=xxxx' I get

Terragrunt not findind folder from source repo

I am using the official Gruntworks samples with the backend (modules) and frontend (live) repos. I wanted (for reasons beyond the scope of this question) to swi

Create Azure IaaS Domain Controller using Terraform

I'm attempting to add a domain controller to an existing domain using terraform (in Azure). I declared some local values in the main terraform file for my serve

Create Azure IaaS Domain Controller using Terraform

I'm attempting to add a domain controller to an existing domain using terraform (in Azure). I declared some local values in the main terraform file for my serve

AWS Codepipeline: in action 'Source' is not available in region 'EU_WEST_3'

I got a sample AWS codepipeline working in Paris region ("eu-west-3") via the console but need to get it set up via Terraform. I have one major problem : Error:

Template.tf and user_data.yaml.tpl- loop through a variable of type list

I am new to templates, I am trying to change terraform modules to flex as many “nameservers” as needed. How can iterate through the values of variab

How can I upgrade the AKS cluster using terraform without downtime

I want to upgrade my AKS cluster using terraform without or with minimal downtime. What happens to the workloads during the cluster upgrade. Can i do the AKS cl

Error when creating the firebase project using terraform

I am trying to create a create a firebase project using terraform. I am new in it and need some guidance in setting up the firebase project. I am facing an issu

terraform provider plugin symlink creation to plugin fails in Unix

OS: Unix .terraform.rc file content: plugin_cache_dir = "$HOME/.terraform.d/plugin-cache" I have placed aws provider plugin to "$HOME/.terraform.d/plugin-cache"