hashicorp / hashicorp/hcl

Feature: Custom User Types

Open
#762 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
5.8k
Forks
657
Avg merge
20h 36m
Merged PRs (30d)
6

Description

We often find ourselves copy and pasting type blocks in terraform templates. This makes it more difficult to maintain.

Please consider adding custom types as a language construct or extension. It would allow someone to specify and name a type/object definition and reuse it in code.

Bicep has a similar feature described here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/user-defined-data-types

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by comparing the requested construct with the linked Bicep user-defined data types documentation; done means HCL supports named type or object definitions that can be reused in Terraform templates.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.