Questions tagged [hcl]

HashiCorp Configuration Language. The structured configuration syntax that serves as the basis for Terraform's configuration language.

HCL establishes the syntax Terraform uses for things like arguments, blocks, literal values, and expressions. But what most people think of as the Terraform language extends beyond just the syntax; the built-in functions, Terraform-specific block types (like resource and variable), and Terraform-specific named values available in expressions are all implementation details of Terraform itself.

Source: https://www.terraform.io/docs/glossary.html#hcl

291 questions
0
votes
1 answer

Adding Multiple Roles to a GCP Group in Multiple Projects Through Terraform

I am attempting to add multiple roles to a GCP group in multiple projects via Terraform. I've skimmed through documentation, other threads here, and have attempted multiple trial/error attempts with no luck. Below is what I have: vars.tf variable…
0
votes
1 answer

Using element function within resource block

I am using aws vpc module and defined below variables. I am trying to understand use of element and why the cidr_block is calculated as below: element(concat(var.public_cidr_blocks, [""]), count.index) Below are the variable and resource…
meallhour
  • 13,921
  • 21
  • 60
  • 117
0
votes
1 answer

File listing in Terraform

I am trying to first generate in Terraform some files in a folder and then list those files. Unfortunately, I am not able to get the file list from the generation command since it is a shell script which does not outputs anything. As I understand…
sctx
  • 128
  • 2
  • 11
0
votes
0 answers

Booting Linux mint on old HCl me laptop 3GB RAM error

First, I saw a blinking cursor at the top-left of my screen. After that, I received an error message indicating that the link was not found. Currently, my system is stuck on the Linux Mint 19.2 logo and the green blinking dots that surround it. I…
0
votes
1 answer

HCP Packer connection problem to registry in ADO pipeline

I am currently getting the following error in my ADO pipeline when running "packer build". I have set HCP_CLIENT_ID and HCP_CLIENT_SECRET inside my variable group and it is utilizing them to connect to the packer registry but it is saying "access…
Scott
  • 7
  • 1
0
votes
2 answers

Hashicorp's Nomad template explanation

With Hashicorp Nomad one can define a template through which a file can be created on a Docker containers storage - provided that `driver="docker". The template looks like the following: template { data = <
Niko
  • 616
  • 4
  • 20
0
votes
1 answer

Java servlet called again when download button is clicked

I'm deploying JSF portlet on HCL Portal 9.5 that includes a servlet for PDF opened in a new tab. I don't know if that's a common behavior but when I click a download button in a newly opened tab, servlet is called again. Why? Can I avoid…
peterremec
  • 488
  • 1
  • 15
  • 46
0
votes
2 answers

How can I have a Golang script modify a value in my Terraform (HCL format) file?

I am attempting to do a small bit of automation on a Terraform file I have, that defines an Azure Network Security Group. Essentially I have a website & SSH access that I only want to allow to my public IP address, which I can obtain from…
kafka
  • 553
  • 6
  • 19
0
votes
0 answers

How to access FEB/Leap API via Postman

I am trying to connect to the API so that I can view a form's data via Postman. However, even though I have Postman set to Basic Auth with my username and password, all I get is the login screen.
Connie DeCinko
  • 802
  • 2
  • 15
  • 32
0
votes
2 answers

Terraform: add map to list of maps within list of maps

Given this structure in a variable in Terraform: https_listener_rules = [ { https_listener_index = 0 priority = 1 actions = [{ type = "forward" target_group_index = 1 }] conditions = [{ host_headers…
Fo.
  • 3,752
  • 7
  • 28
  • 44
0
votes
3 answers

Terraform: Handling locals that are conditional due to feature flags

I'm building a Terraform module that uses some variables for feature flags along with locals for storing some computed values. I'm bumping into some errors while a flag is true. The flags (booleans saved as variables) are on every resource and use…
Jeremy Schultz
  • 579
  • 1
  • 6
  • 26
0
votes
1 answer

Terraform map(object) single line input value - Missing newline after argument error

I am using map(object) for my terraform module to implement Kubernete cluster. The requirement is to use map(object) variable type. This is the variable I am using: variable "user_node_pool" { type = map(object({ mode = string …
0
votes
1 answer

How to read from a variant variable the NoteID and overgive it to a adminp action?

I do have the following Lotus Script: Sub Initialize ' ... some other code Dim adminp As NotesAdministrationProcess Dim varNoteID as Variant ' read the noteID from notes document field varNoteID = doc.GetItemValue(…
Baku Bakar
  • 442
  • 2
  • 8
  • 20
0
votes
0 answers

Is there a way to use token:tenantId parameter in Terraform

I'm moving my ARM template codebase into Terraform. For API Connections (Microsoft.Web/connections), I use azapi provider. In the way of shifting the parameters into the azapi_resource block, I have the following nonSecretParameters in my ARM…
Akila Gamage
  • 43
  • 10
0
votes
1 answer

3.13.0 New Relic Provider Crashing on Terraform

I am running into an issue with a terraform provider, the new relic plugin keeps crashing for some reason and I don't know why. I'm trying to build a simple alerting script on terraform to create an alerting policy + conditions on the new relic UI.…