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
-1
votes
2 answers

How To Handle Multiple Lines within a Command Block in Terraform

I have a task whereby which I have to create a Harness Delegate in Terraform, and it has to be modularized and handled by GitHub Actions. As a result, my main TF is basically trying to tar a file, which makes a kubernetes-harness-delagate folder in…
R. Barrett
  • 685
  • 11
  • 34
-1
votes
1 answer

Terraform count calling module output(return) error

I need to return output of name and id only root main.tf # Azure Provider configuration provider "azurerm" { features {} } module "rg" { source = "../../modules/rg" count = length(var.resource_groups) …
-2
votes
1 answer

Why am I getting this error for reference to undeclared input variable

I'm trying to create a basic dashboard using terraform in my front end project. Here is my folder structure: ├── infrastructure │ ├── environments │ │ ├── production │ │ ├── backend.tvars │ │ ├── variable.tvars │ │ │ │ │ …
-2
votes
1 answer

How to get IP address from of an RDS host?

I am using aws_db_instance resource from Terraform AWS provider. Could you please let me know how to get IPv4 address of this provisioned RDS resource? I could only see endpoint in attribute reference which is not returning IP address. endpoint =…
Akshay Lokur
  • 6,680
  • 13
  • 43
  • 62
-2
votes
1 answer

Terraform Decode function not converting JSON values to Terraform language values

If I'm understanding this correctly the jsondecode function in terraform should convert json values to terraform language values according to this: https://developer.hashicorp.com/terraform/language/functions/jsondecode However in the use case I am…
-2
votes
1 answer

Terraform get value in object

I have the Terraform output of the module look like below: ec2_multiple_instances = { "one" = { "private_dns" = "aaaaa.bbbb.cccc" "private_ip" = "xx.xx.xx.xx" "public_dns" = "ec2-xx-xx-xx-xx.compute.amazonaws.com" "public_ip" =…
Nightt
  • 392
  • 1
  • 4
  • 18
1 2 3
19
20