terraform-ls VS magic-modules

Compare terraform-ls vs magic-modules and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
terraform-ls magic-modules
13 5
951 747
1.5% 1.9%
9.4 9.9
about 14 hours ago 5 days ago
Go HTML
Mozilla Public License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

terraform-ls

Posts with mentions or reviews of terraform-ls. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-25.
  • OpenTF Announces Fork of Terraform
    28 projects | news.ycombinator.com | 25 Aug 2023
    Marcin here, one of the OpenTF folks

    This repo [0] seems to still be licensed under MPL, so there is no need for an immediate action, but if there is a willingness in the community to take it over and improve, I see no reason why we wouldn't do it.

    [0] https://github.com/hashicorp/terraform-ls

  • State of terraform
    3 projects | /r/Terraform | 22 Jun 2023
  • Why is this so dumb?
    2 projects | /r/Terraform | 3 May 2023
    For example my other issue with simple click through URLs to resource documentation pages, this would be a simple solution if the resource documentation URL formatting was done to a standard with the resource names.
  • Can't get .tf highlighting to work. Terraform
    3 projects | /r/neovim | 15 Jan 2023
    I have followed this guide: https://github.com/hashicorp/terraform-ls/blob/main/docs/USAGE.md
  • Help with implementing missing LSP functionality in Terraform
    3 projects | /r/neovim | 5 Dec 2022
    As /u/fridgedigga, neither LSP implements renaming. The LSP spec can be found here. I don't know how all of this is wired up. At a minimum, you'll need to add a mapping in service.go and handler. The bulk of work is performed in the handlers.
  • Workflow for DevOps? (Ansible, Terraform, Kubernets, RHET)
    9 projects | /r/neovim | 30 May 2022
    Look at terraform-ls vs terraform-lsp. Both can be used with coc.nvim.
  • Terraform Assistance (Nvim, Vim, LSP?)
    2 projects | /r/vim | 1 Mar 2022
    For the LSP, I have never heard of Terraform before but it looks like they have a section on using it with vim/neovim. Not sure if this is already part of what you have tried, but I can't really help more since I have never used it.
  • VSCode plugin very slow at terraform fmt on save
    2 projects | /r/Terraform | 14 Jun 2021
    This worked, thank you! I found all the cli options here for anyone that needs them.
  • Terraform 1.0 Release
    33 projects | news.ycombinator.com | 8 Jun 2021
    https://github.com/hashicorp/terraform-ls

    These are both fairly limited but you can see every editor (except intellij) uses this under the hood.

    I've used them at companies with 300+ terraform repos and have never had much of an issue navigating/understanding TF through Vim.

  • Using terraform-ls with Kate as LSP Client
    3 projects | /r/kde | 27 Apr 2021
    So, what happens when you run the server from command line and then open your file in Kate? Any difference? Also, is there any command argument for logging and/or debugging the terraform-ls? It might help to find the issue, if any. I found this from the docs.

magic-modules

Posts with mentions or reviews of magic-modules. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-25.
  • I think GCP is better than AWS – by Fernando Villalba
    6 projects | news.ycombinator.com | 25 Oct 2023
    Given: https://registry.terraform.io/providers/hashicorp/google/5.3...

    how would any reasonable person know what https://registry.terraform.io/providers/hashicorp/google/5.3... to enable without (a) trying it and squinting at the error message (b) clicking on the <> then realizing it, also, does not mention run.googleapis.com, click on "supported service endpoints" <https://cloud.google.com/run/docs/reference/rest#rest_endpoi...> and only then learning about https://cloud.google.com/run/docs/reference/rest#service:-ru...

    Repeat for https://registry.terraform.io/providers/hashicorp/google/5.3... although in both cases I guess the astute reader may have spotted the run.googleapis.com in the forbidden service labels and cloudidentity.googleapis.com in the example

    Since, to the best of my knowledge those bindings are auto generated <https://github.com/GoogleCloudPlatform/magic-modules#magic-m...>, I would hypothesize it is not insurmountable drop in the seemingly existing declaration of APIs required: https://github.com/GoogleCloudPlatform/magic-modules/blob/7d... https://github.com/GoogleCloudPlatform/magic-modules/blob/7d...

  • Terraform Plugin Framework Development: How to implement nested attributes?
    5 projects | /r/Terraform | 11 Apr 2022
    In the case of the Google Cloud Platform provider, folks at Google built magic modules with the explicit goal of being able to generate schemas and behaviors for a Terraform provider and for other systems with similar needs. Since the vendor was explicitly aiming to support Terraform, this was the most ideal case where the schema could be designed to contain all of the information needed to generate a functional, usable provider.
  • How to contribute/update to a Terraform provider?
    1 project | /r/Terraform | 11 Oct 2021
    I think the "Developing the provider" instructions in this provider's repository are rather stale, because they still talk about GOPATH even though that's been obsolete for several Go versions now. Note also that much of the code in that repository is auto-generated from an upstream repository googleCloudPlatform/magic-modules, and so for some changes it may be better to contribute there once you've tested the modifications more directly inside the provider repository.
  • Terraform 1.0 Release
    33 projects | news.ycombinator.com | 8 Jun 2021
    For GCP, both ansible modules and terraform modules are actually generated from https://github.com/GoogleCloudPlatform/magic-modules, so their "production readiness" are the same.

    I understand that mitchellh himself personally created a bunch of cloud modules for terraform at the beginning, and those were likely of higher quality than whatever created by some internal developers assigned by Google/Microsoft, and might be slightly better than the AWS modules maintained by community.

    Anyway, when it comes to ansible versus terraform, we shall move the discourse to states management instead. With ansible, you don't have to deal with states, but will need to clean up the cloud resources separately. With terraform, you can use the tool to clean up the cloud resources easily, but then you also have the headache of managing states. Plus, whenever you change something, there is always the nagging feeling that it will do a destroy/recreate instead of an in-place update.

  • Pulumi 3.0
    5 projects | news.ycombinator.com | 20 Apr 2021
    The Terraform provider for Google Cloud uses partial autogeneration, here is the repo that does the autogeneration for multiple automation tools:

    https://github.com/GoogleCloudPlatform/magic-modules

What are some alternatives?

When comparing terraform-ls and magic-modules you can also consider the following projects:

terraform-lsp - Language Server Protocol for Terraform

desktop-ansible - Ansible Playbooks to install Arch on my PC from scratch

terragrunt - Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.

tf2pulumi - A tool to convert Terraform projects to Pulumi

tfenv - Terraform version manager

terraform-cdk - Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform

terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

pulumi-provider-boilerplate - Boilerplate showing how to create a native Pulumi provider

terraform-switcher - A command line tool to switch between different versions of terraform (install with homebrew and more)

pulumi-terraform-bridge - A library allowing providers built with the Terraform Plugin SDK to be bridged into Pulumi.