FsHcl generates HCL (HashiCorp Configuration Language) code from F#.
The library renders Terraform configurations to .tf files.
- 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
TerraformHclmodule - Targets
netstandard2.0(compatible with .NET 6, 8, 9, and later)
dotnet add package FsHcl
open FsHcl.Hcl
open FsHcl.TerraformHcl
hcl {
resource "aws_s3_bucket" "example" {
attr "bucket" (str "my-bucket")
}
}
|> documentDocumentation is at https://ryushiaok.github.io/FsHcl/.
examples/HelloLambda is a complete working example.