Skip to content
RyushiAokPublic

About

A typed HCL generation DSL for F#

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

FsHcl

NuGet

FsHcl generates HCL (HashiCorp Configuration Language) code from F#. The library renders Terraform configurations to .tf files.

Features

  • Computation expression syntax for HCL blocks (resource, data, module, variable, output, locals, provider, terraform, and more)
  • F# anonymous records as HCL values with ofValue / ofRecord
  • Terraform-specific helpers in the TerraformHcl module
  • Targets netstandard2.0 (compatible with .NET 6, 8, 9, and later)

Quick Start

dotnet add package FsHcl
open FsHcl.Hcl
open FsHcl.TerraformHcl

hcl {
    resource "aws_s3_bucket" "example" {
        attr "bucket" (str "my-bucket")
    }
}
|> document

Documentation

Documentation is at https://ryushiaok.github.io/FsHcl/.

Examples

examples/HelloLambda is a complete working example.

License

MIT

About

A typed HCL generation DSL for F#

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages