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

json support #180

Closed
casperdcl opened this issue Aug 23, 2021 · 9 comments · Fixed by #181
Closed

json support #180

casperdcl opened this issue Aug 23, 2021 · 9 comments · Fixed by #181
Assignees
Labels
documentation Markdown files question User requesting support

Comments

@casperdcl
Copy link
Contributor

Terraform should support .json in addition to .tf in case the user prefers a more widely-used format. Can we confirm/document this?

@casperdcl casperdcl added documentation Markdown files question User requesting support labels Aug 23, 2021
@pmrowla
Copy link

pmrowla commented Aug 23, 2021

see: https://www.terraform.io/docs/language/syntax/json.html

@0x2b3bfa0
Copy link
Member

0x2b3bfa0 commented Aug 23, 2021

We do support the .tf.json configuration syntax natively.

@0x2b3bfa0
Copy link
Member

@pmrowla, you're blazingly fast! 🚀

@casperdcl
Copy link
Contributor Author

we just had a meeting :)

@0x2b3bfa0
Copy link
Member

Closing as resolved; we shouldn't need to invent here the linked documentation.

@casperdcl
Copy link
Contributor Author

the readme misleadingly only mentions main.tf. At the least that should be changed.

@casperdcl casperdcl reopened this Aug 23, 2021
@0x2b3bfa0
Copy link
Member

@casperdcl, should we provide .tf.json examples for all our resources?

Given the current status of the readme file (and the API it describes), I would just mention that we also support the JSON syntax as any other provider.

@0x2b3bfa0
Copy link
Member

Just to clarify: this is a Terraform feature, not a provider-specific feature.

0x2b3bfa0 added a commit that referenced this issue Aug 23, 2021
0x2b3bfa0 added a commit that referenced this issue Aug 23, 2021
* Mention the Terraform JSON Configuration Syntax

Should fix #180

* Add missing underscore

* Restyled by prettier-markdown

Co-authored-by: Restyled.io <[email protected]>
@0x2b3bfa0
Copy link
Member

Historical note: if looking for examples, check #168 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Markdown files question User requesting support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants