Comments (6)
@sethvargo, for what its worth we also desperately need this to parameterize our vault deployments where our KV store is backed by Postgres.
from hcl.
Hi @strarsis
This is not possible directly with HCL, but can be implemented as a function by the tool you want to parse as HCL. See Terraform for an example. Thanks! 😄
from hcl.
+1 for this as a feature request, would be useful in my consul-template config file
from hcl.
+1 as well for this feature
from hcl.
@sethvargo, Is it a desarable feature?
It's really useful in Consul template
from hcl.
Hi all,
Thank you for the interest in using environment variables within the various applications that use HCL.
The code within this module deals only with the overall syntax of HCL. How the settings within the HCL structure are interpreted -- including any variables or functions that might be supported via interpolation/templates -- is the concern of the embedding applications.
In particular this means that supporting environment variables in consul-template and Vault would need to be feature requests to those respective applications, rather than to HCL itself. The teams for those applications are also in a better position to figure out how best to integrate environment variables support with other features they may have.
from hcl.
Related Issues (20)
- PartialContent documentation mismatch with behavior? HOT 4
- hclwrite: SetAttributeRaw() after Clear() is not present in hcl.Bytes() output
- how to convert HCL2 into json? HOT 9
- Conditionals with unknown conditions and marked branches are erroring.
- how to convert json to hcl using hclv2? HOT 4
- merged: set attributes even if diagnosed as duplicated HOT 2
- raw parse and decode without evaluating variables and functions? HOT 3
- hclsyntax: Recovery of outer `ObjectConsExpr` with empty `TemplateExpr` HOT 1
- Question: How to evaluate unknown functions without errors? HOT 2
- hclsyntax: Recovery of incomplete `ConditionalExpr` HOT 1
- Introduce `Code` to `Diagnostic`
- Report ambiguous attribute keys earlier than in `expression.Value()` HOT 2
- hclsyntax: Recovery of incomplete parenthesis
- Wrong `NameRange` for namespaced function call expressions
- Allow for block types with optional labels HOT 5
- hcldec: how to use `block_attrs`? HOT 1
- What happened to include? HOT 3
- Issue parsing HCL object within a block HOT 1
- Merge duplicate diagnostics to avoid diagnostics flood HOT 1
- Go generate does not work on newer systems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcl.