Comments (6)
vote up!
from terraform-generator.
can I understand your use case of using .generate method?
from terraform-generator.
I init data return from generate method into monaco editor
as i checked monaco editor not support format hcl code (and some other language like java ...)
Is it posible to format terraform code in generate method?
from terraform-generator.
There is no plan to format it using javascript at the moment, it is mentioned in README limitation section too.
I might revisit this if I have time.
The reason why I didn't do it is because I usually write it into a file, the .write()
method has an options to format the file using terraform fmt
.
I am not familiar with monaco editor, could you explore whether it is possible to run terraform fmt
?
from terraform-generator.
Actually, my project is use reactjs and there is an error when i used .write() method.
fs.existssync is not a function
I have not find the sollution yet. i dont know how is the content of generated terraform file.
from terraform-generator.
It is suppose to be used in backend Nodejs. Using with react is not something I thought about and catered for.
I will update here if I manage to make .generate
produce prettified text.
from terraform-generator.
Related Issues (20)
- Terraform Configuration is failing when provisioner added to resource HOT 2
- Interpolation-only expressions being deprecated HOT 1
- write issue on environment variables
- Passing an object to fn generates an invalid terraform file HOT 6
- Map values generated as blocks instead of variable assignment HOT 1
- Tag blocks are malformed HOT 1
- variable types are no longer supported with double quotes from terraform. HOT 2
- Comments HOT 2
- API doc is broken HOT 1
- Feature request: Is a read file possible to modify existing configurations? HOT 2
- Using tags inside resources not output correctly, missing "=" operator HOT 1
- Question: How does one use a keyword when adding a variable? HOT 1
- Error generating nested options when using the TerraformGenerator class HOT 2
- Variables with type constraints generate a warning with terraform cli 1.5.7 HOT 1
- in-built Terraform file function isn't recognized HOT 1
- "lcoals" should be "locals" HOT 2
- bad variable type translation HOT 5
- Import is not working by Readme manual HOT 1
- Repeated blocks HOT 2
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 terraform-generator.