Quantcast
Channel: Terraform - HashiCorp Discuss

MonitorDataCollectionRule: unexpected status 400 (400 Bad Request) with error

When I run cdktf deploy to provision a data collection rule, I get the following error: Error: creating Data Collection Rule (Subscription: "a475b49b-c65e-46a7-9c63-1ec577986549" │ Resource Group...

View Article


Ephemeral value not allowed

I’m trying to use ephemeral resource azapi_resource_action and I’m encountering a peculiar behaviour, or I’m misunderstanding how ephemeral works. In my reusable module I ‘call’ ephemeral...

View Article


CDKTF ignoring private registries?

Hi! We would like to use CDKTF to manage some of the more complex environments. The challenge is, that server running terraform and CDKTF can’t access the internet. For terraform we simply configured...

View Article

Terraform does not use the disk size I specify

Hi, I created an qcow2 image using Packer from a json file where I specified disk size 40960 bytes. But then I create machines in terraform using this image disk, and I specify disk size 80GB. But...

View Article

Can dynamic credentials be used with the Cloudflare provider?

Is it possible to use dynamic credentials with the Cloudflare Terraform provider, similar to the setup for the AWS provider that uses HCP Terraform’s native OpenID Connect integration with AWS? 1 post...

View Article


Resource recreation because location is unknown

I have the following code: data "azurerm_resource_group" "this" { name = var.resource_group_name } resource "azurerm_cosmosdb_account" "this" { name = local.cosmos_account_name location =...

View Article

Secure AWS IoT certificate handling

Hello Everyone, I have been working on this topic for some time now and wanted to ask for your opinions: The general problem I see when handling AWS IoT certificates in Terraform is, that the method...

View Article

Vault database(postgres) secret backend connection: max_open_connections w/...

at here: Specifies the maximum number of open connections to the database. the the max_open_connections parameter have a default value of 4. But how about the parameter is set to have value ZERO, or...

View Article


Image may be NSFW.
Clik here to view.

Hashicorp exclusion syntax

I’m using the latest version of hashicorp enterprise (v1.19.x) and I am trying to use the audit log exclusion syntax listed in the link below. There are examples of the syntax but not the examples...

View Article


Passing inputs to Terraform Stacks

I am learning Terraform Stacks. Is it possible to pass inputs to it from workspaces? Currently my environment is defined in workspaces. I see...

View Article

Image may be NSFW.
Clik here to view.

Terraform freezes direct after releasing state lock

terraform freezes when releasing state lock. I’m using terraform cloud backend, In this morning, I canceled terraform plan by terraform CLI with Ctrl + C twice. after that my remote state lock...

View Article

Image may be NSFW.
Clik here to view.

Root terraform module not picking up child modules

I have a below module structure where where I am trying to run common terraform modules using a parent child relationship. Common terraform modules are under the common folder and the root terraform...

View Article

Explanation of depends_on field under prior_state in terraform plan output?

The depends_on meta-arg in the resource configuration denotes explicit dependencies for the resource. The same field in present in the json output of terraform plan under prior_state section. I...

View Article


Deduplicate Map in For Loop

Consider the following example: resource aws_route53_record acm_validation { for_each = { # use all the info as a key (which is unused) to ensure deduplication of records for dvo in...

View Article

Apt repository does not have a Release file for focal

Trying to build a docker container with terraform installed but getting The repository 'https://apt.releases.hashicorp.com focal Release' does not have a Release file. The dockerfile step is RUN wget...

View Article


Error on Terraform Apply on GHA

The GHA was recently implemented on the company and I’m facing a problem that I would like to have some guidance, the first GHA deployment worked fine, it turns out that I modified the module and...

View Article

Terraform rewrite rules are not assciating routing rules

rewrite is not creating associate rules, anyone can help i can provide more info 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

Forcing order in ressource creation

Hello, Is it possible to create ressources in specific order ? I am using a YAML file with content in list : cloudlogs_view: - name: "1_exemple-view" query: "severity=\"Warning\"" - name:...

View Article

Is it possible to run multiple tftest.hcl files in parallel?

Seems like its running in order one after another, but I was wondering if it was possible to have multiple tftest.hcl file run in parallel since they don’t depend on each other. 1 post - 1 participant...

View Article

Image may be NSFW.
Clik here to view.

VERY strange format being applied

Hi All - very much learning how to use Terraform so forgive the newbie. I doubt very much if my issue is related to terraform - could well be Visual Studio Code that I’m using to deploy so I’ll be...

View Article

Ephemeral error on passing to template

Hi, I am attempting to follow the example specified here. Am I understanding correctly that these ephemeral values can only be passed to other ephemeral objects. I attempted passing it into a template...

View Article


Azure storage account key based authentication error

Hello, When planning or applying terraform code I get error “Error: retrieving queue properties for Storage Account” “executing request: unexpected status 403 403 Key based authentication is not...

View Article


Null resource condition in terraform

I m using disney module “kinesis_firehose_splunk” and using terraform resource “aws_cloudwatch_log_group:”. to create log groups . Before the log group are created the the module tried to pass the...

View Article

PG backend does not accept multiple hosts

Hello, I’m facing the same issue as described in this topic : Backend with PG and master-slave cluster. I need to configure several hosts in my pg backend configuration but it seems not possible. Is...

View Article

Event bridge schedules for DMS replication tasks and glue jobs without lambda...

Hi Team I have been working on creating schedules for DMS replication tasks and glue jobs through TF scripts. While doing so, I am facing “Validation error”, if I try to create the schedules by...

View Article



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