templatefile

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

README

templatefile

This is a standalone CLI to the Terraform templatefile function.

templatefile reads the file at the given path and renders its content as a template using a supplied set of template variables.

[…]

The "vars" argument must be a map.

Read the function docs on terraform.io →

Installation

Download a binary from the releases section on GitHub →

Usage

printf '%s\n' 'Hello, ${name}!' > hello.tmpl
printf '%s\n' 'name: world' > hello.yml
templatefile hello.tmpl hello.yml
# Hello, world!

Both YAML and JSON files work. The root of the file must be an object.

License

This code is based on the implementation in Terraform and is available under the same license →

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL