Quantcast
Channel: Terraform - HashiCorp Discuss

Nesting loop with result of for_each

Hi, I use a list of objects as input for creating multiple vm’s using for each: variable "servers" { type = list(object({ name = string })) default = [ { name = "tst-vm-01" }, { name = "tst-vm-02" } ]...

View Article


Aws EKS automode custom nodeclass and nodepool resources

Hi team, Do we have any terraform resources available for creating custom node class and custom node pool in AWS EKS cluster with Automode feature enabled?? If yes, would you please guide me with some...

View Article


Error: "policy" contains an invalid JSON: invalid character 'a' after object...

Hello Mart and Team, Please help me to resolve below terraform error │ Error: “policy” contains an invalid JSON: invalid character ‘a’ after object key:value pair │ │ with...

View Article

Automatically Creating Workspaces

Hey All - I’m pretty new to terraform. Been spending the last 4 months or so getting the basics down and I finally feel confident enough to put together a POC for Okta as my background is IAM. I am...

View Article

Conditional include for files in a terraform workpace?

I’m familiar with using for_each and count to conditionally create single resources and dynamic blocks. I’m wondering if there’s a way to apply a conditional to all of the resources in a specific .tf...

View Article


Dynamic vsts configuration based on environment

variable “environment” { description = “path for approle authentication in vault” type = string sensitive = true default = “dev” } resource “azurerm_data_factory” “edidatafactory” { name = “example”...

View Article

Image may be NSFW.
Clik here to view.

Getting error while creating Opensearch role and Opensearch role mappings

Source Code: registry.terraform.io Terraform Registry 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Under what conditions are datasources re-read on terraform destroy and is...

Hi Terraform community I have a requirement whereby I need to ensure that a datasource is re-read on terraform destroy prior to a destroy time remote-exec provisioner executing. The datasource that i...

View Article


Terraform backend(?) behavior

Hello, I am not sure whether this is the correct place for the issue we are facing, but maybe it is. We are hosting our Terraform Backend on Artifactory in a Terraform backend repository. After the...

View Article


Error Importing SQL Managed Instance databases

I’ve deployed a SQL Managed Instance into Azure, with 4 databases, using a for_each statement. The instance and databases were successfully created. However, I need to re-apply the code to make a...

View Article

Image may be NSFW.
Clik here to view.

Terraform Cloud agent networking usage

Hi, I’ve been trying to optimise my terraform runs by enabling terraform providers cache on my tfc-agent running in kubernetes (hashicorp/tfc-agent:1.21.2) to avoid downloading the bulky...

View Article

Where to Save ECS Fargate App Configurations Without Terraform Overhead

Hi everyone, I’m running an ECS cluster on Fargate, and I’m trying to find the best way to manage application configuration. My current setup: Sensitive config (e.g. secrets, tokens): stored in SSM...

View Article

Override in Dynamic block? AppGateway

Me and my colleague are setting up a new code and sort of template for an Application Gateway in Azure. We mostly use locals and dynamic blocks, because there will be a lot of similar/repeatative...

View Article


Provider build fails in Github Actions

I setup the GA config and the necessary GPG key. I get this error when creating a new release: ⨯ release failed after 4m40s...

View Article

Install hashicorp vault via terraform only or use Terraform + ansible?

I have question about how to create instance in cloud and init scripts: I have example stack for create hashicorp vault in hetzner: provider "hcloud" { token = var.hcloud_token } resource...

View Article


Questions regarding deploying a Windows DC using libvirt

Hi, I want to deploy a windows domain controller and later windows workstations but first I want to get the domain controller to work. It’s the first time I’m using terraform and libvirt so I’m not...

View Article

Accessing variable from other module

Hi Everyone, I am getting error while using module mod/resource_group.tf variable "region" { type=string default="Central India" } resource "azurerm_resource_group" "app_resource_group" { name =...

View Article


Local-exec script is not shutdown gracefully

Assume the following terraform_data resource running a shell script. The shell script “test.sh” has some time-consuming cleanup code which is expected to run when Terraform execution is interrupted...

View Article

Support : High Throughput in SNS for fifo

Few days back, AWS has released a new feature in SNS to support high throughput limit for fifo. As i checked in the documentation, the terraform did not support that in the latest version : 5.95.0 Any...

View Article

Provider has renamed resource, least disruptive way to handle?

A provider we use has renamed resources in their latest version. They did do this at a major release, and tagged it as a breaking change in the docs. However, they never marked the old one as...

View Article

Image may be NSFW.
Clik here to view.

Fedora 42 Release - Hashicorp RPM Repository Support

Hello, Fedora 42 has now been released It looks like there is not yet a mirror for Fedora 42, only 41 is available at rpm.releases.hashicorp.com. I looked through various Github pages to see if I can...

View Article


Unable to integrate SQS with HTTP api gateway using terraform

I am trying to integrate SQS with HTTP API gateway but not able to using terraform. I am able to do it using AWS console. 1 post - 1 participant Read full topic

View Article


Getting terraform libvirt to use existing qcow2 file

Hi, I want to setup a Windows domain controller with terraform libvirt provider from my Ubuntu host machine. Instead of using autounattend.xml file, my plan is to create a new VM in virt-manager...

View Article

Feature request: Terraform function to return the default value of a variable

I think Terraform should provide a function to return the default value of a variable. Consider the following definition. variable "attribute_mapping" { type = map(any) default = { "google.subject" =...

View Article

Terraform test: unexpected destroy order

I have a Terraform test file, with the following (redacted) content: run "setup" { ... } run "create_provider" { ... } run "create_consumer_same_region" { ... } run "create_consumer_different_region"...

View Article



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>