Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCL function file() #688

Open
johakoch opened this issue Jan 31, 2023 · 0 comments
Open

HCL function file() #688

johakoch opened this issue Jan 31, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@johakoch
Copy link
Collaborator

johakoch commented Jan 31, 2023

Provide a file() function like the one in Terraform (https://developer.hashicorp.com/terraform/language/functions/file):

file reads the contents of a file at the given path and returns them as a string.

See implementation in terraform

Example:

json_decode(file("./project_conf.json"))[request.json_body.pid]...
@johakoch johakoch added the enhancement New feature or request label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant