question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave “+1” or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

I’ve been using terraform funtions (json and yaml decode/encode) To convert terraform json <> terraform yaml.

Would it be possible to have similar terraform validated yaml output from synth ?

{
  "//": {
    "metadata": {
      "version": "0.0.12",
      "stackName": "python-azure"
    }
  },
  "terraform": {
    "required_providers": {
      "azurerm": "~> 2.0"
    }
  },
  "provider": {
    "azurerm": [
      {
        "subscription_id": "<>",
        "tenant_id": "<>",
        "features": [
          {}
        ]
      }
    ]
  },
  "resource": {
    "azurerm_resource_group": {
      "pythonazure_testrg_4EE2DCD8": {
        "location": "northeurope",
        "name": "test",
        "//": {
          "metadata": {
            "path": "python-azure/testrg",
            "uniqueId": "pythonazure_testrg_4EE2DCD8",
            "stackTrace": []
          }
        }
      }
    }
  }
}
"//":
  "metadata":
    "stackName": "python-azure"
    "version": "0.0.12"
"provider":
  "azurerm":
  - "features":
    - {}
    "subscription_id": "<>"
    "tenant_id": "<>"
"resource":
  "azurerm_resource_group":
    "pythonazure_testrg_4EE2DCD8":
      "//":
        "metadata":
          "path": "python-azure/testrg"
          "stackTrace": []
          "uniqueId": "pythonazure_testrg_4EE2DCD8"
      "location": "northeurope"
      "name": "test"
"terraform":
  "required_providers":
    "azurerm": "~> 2.0"

References

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
skorfmanncommented, Jul 23, 2020

Is YAML supported as input for Terraform?? Besides, what would be the use-case for you?

0reactions
github-actions[bot]commented, Dec 8, 2022

I’m going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you’ve found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

YAML Tutorial: Everything You Need to Get Started in ...
YAML has broad language support and maps easily into native data structures. It's also easy to for humans to read, which is why...
Read more >
YAML - Visual Studio Marketplace
Provides comprehensive YAML Language support to Visual Studio Code, via the yaml-language-server, with built-in Kubernetes syntax support.
Read more >
Chapter 11. Adding YAML configuration support
You can add the Quarkus Config YAML extension and use YAML over properties for configuration. Quarkus supports using application.yml as well as application.yaml...
Read more >
Code Style. YAML | IntelliJ IDEA Documentation
Use this page to configure formatting options for YAML files. When you change these settings, the Preview pane shows how this will affect ......
Read more >
Boost your YAML with autocompletion and validation
To ease on our customers and with JSON Schema assistance we added ... Provides comprehensive YAML Language support to Visual Studio Code, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found