Category "terraform"

Terraform aws_wafv2_ip_set delete ip on apply

I have a resource aws_wafv2_ip_set that is used by many different modules. variable "addresses" { type = set(string) default = [] } resource "aws_wafv2_

Create AWS Lambda function using Terraform

I faced with a problem concerning of creation of Lambda function using Terraform. I tried to follow a standard documentation of Terraform to configure it, but i

How to validate a character set in terraform variable?

i need to validate a variable in terraform. The content of the variable should be only 0-9, a-z and A-Z. Im tried it with following code: variable "application_

Script to create swap partition fails when running automatically

I am creating a cluster of machines in AWS (Amazon Linux 2) using terraform by utilizing the user_data argument under the aws_instance resource. Part of the scr

Terraform optional provider for optional resource

I have a module where I want to conditionally create an s3 bucket in another region. I tried something like this: resource "aws_s3_bucket" "backup" { count

How to avoid ClusterIssuer dependency on helm cert-manager CRDs in Terraform plan and apply? ("ClusterIssuer" not found in group "cert-manager.io")

I am trying to create a module in Terraform to create the basic resources in a Kubernetes cluster, this means a cert-manager, ingress-nginx (as the ingress cont

When using Terraform with AWS, how can I set a rate limit on a specific URI path (or regex of a URI path) on an ALB

I am trying to rate limit requests to the forgot password change URL using WAFv2 rules attached to an ALB on Cloudfront. What I think I need to do is.. Create t

What permission is required to remove or add resource lock for Azure SQL with Terraform on Azure Pipeline

I have prod subscription where deploying pipeline fails because of permission missing. My Azure AD user have no permission to create or remove locks of Azure SQ

terraform azurerm - cannot destroy public ip

New to terraform so i'm hoping this is an easy issue. I'm creating some resources in azure and deploying a simple flask application to AKS. Creating works fine

How to delete the AMI and snapshot simultaneously during terraform destroy?

In my case, AWS AMI was created by packer and deleting the image via terraform (0.11.6 version) using terraform import and terraform destroy. Once after importi

Shall I use d.Set() for a computer attribute?

I'm adding a new resource to Terraform Provider using Terraform SDKv2 (can't use the new Terraform Plugin). One of new resource's attributes is the following: "

Why can I not connect to an RDS Aurora DB via proxy?

I setup a Postgresql Aurora DB and a Proxy via Terraform (code below), which is apparently running fine. But for some reason I can not connect to the DB through

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