Category "terraform"

Terraform secret value not updating

I am having trouble with secret value update. If I recreate azurerm_windows_function_app with new name the new ID is not being updated in secret value. The secr

Terraform AlreadyExistsException: An alias with the name arn:aws:kms:XXXXX:XXXXXXXXX:alias/myalias already exists

When running terraform apply I get the following error Terraform AlreadyExistsException: An alias with the name arn:aws:kms:XXXXX:XXXXXXXXX:alias/myalias alread

Providing access to EFS from ECS task

I am struggling to get an ECS task to be able to see an EFS volume. The terraform config is: EFS DEFINITION resource "aws_efs_file_system" "persistent" { encryp

terraform attach root EBS volume which is generated from a snapshot to an EC2 instance created from AMI

I have the following code where I am trying to spin up an instance from an AMI and then replace the root volume with a volume I created from an earlier backup s

Ignoring changes for Azure Firewall rules in Terraform

I'm setting up an azure firewall rule and I wish to set ignore changes on the source addresses. Can anyone help me with the correct syntax. Using hashicorp/azur

Secrets doesnt pass from github action secrets to reusable workflow in github actions

I created secrets in github actions and trying to use them in reusable workflow, but I am unable to make it work, However, If I pass secrets hardcoded from call

Enable Azure Monitor for existing Virtual machines using terraform

I am trying to enable azure monitor feature for existing virtual machines which checks for health and performance of the VM using terraform but I am not able to

I am trying to run terraform init but getting this error: Failed to query available provider packages

Terraform init is giving the following error. No version has been upgraded and it was working few days back but suddenly it is failing. Error: Failed to query a

checkov custom policy working only with terraform code and not with cloudformation

I created a Checkov custom YAML policy and noticed that only terraform files are getting scanned with the custom policy. Did not find any documentation that con

how to setup self connection to google_compute_instance_template for file provisioning

I am trying to do a file provisioned into google_compute_instance_template using the method shown below ... provisioner "file" { source = file("${path.m

Terraform 403 error when creating function app and storage account with private endpoint

I am getting a 403 forbidden when creating a function app that connects to its storage account via private endpoint inside a vnet. Storage account has firewall

Terraform and Azure Data Explorer

I am looking for recipes on how to standup a complete Azure Data Explorer stack using Terraform. So far I have found that Terraform has support to create cluste

Terraform: Conditional creation of a resource based on a variable in .tfvars

I have resources defined in .tf files that are generic to several applications. I populate many of the fields via a .tfvars file. I need to omit some of the res

Not able to use terraform command on OpenFaas Python 3 Function deployment

I am using a Openfaas Python3 function with terraform to create bucket in my AWS Account. I am trying it locally and created a local cluster using k3s and insta

Passing Variables to Docker Compose via a Terraform script for an Azure App Service

How do I VAR=VAULE docker-compose up from a Terraform script building an Azure App Service using a Docker Compose file site_config { app_command_line = ""

How to give permissions to AKS to access ACR via terraform?

Question and details How can I allow a Kubernetes cluster in Azure to talk to an Azure Container Registry via terraform? I want to load custom images from my

Terraform ECS Task Definition jsonencode issue

I get this error when applying terraform. It's clearly something wrong with my env_Vars. I've tried making name and value in quotes or without. Error: ECS Task

How to create schedule for the Update Manatement in Azure Automatiuon usin terraform

I'm trying to automate the update manager in Azure Automation using Terraform, but I can't find the information regarding the following 2 points: Schedule creat

Update bucket created in Terraform file results in BucketAlreadyOwnedByYou error

I need to add a policy to a bucket I create earlier on in my Terraform file. However, this errors with Error creating S3 bucket: BucketAlreadyOwnedByYou:

How do you set up an API Gateway Step Function integration using Terraform and aws_apigatewayv2_integration

I am looking for an example on how to start execution of a step function from API Gateway using Terraform and the aws_apigatewayv2_integration resource. I am us