Skip to content

Basic autocomplete/hinting for terraform in Visual Studio Code

Notifications You must be signed in to change notification settings

mgtrrz/terraform-autocomplete

 
 

Repository files navigation

Terraform-Completer

This extension provides basic autocomplete for Terraform modules. It is a fork of erd0s' terraform-autocomplete extension but instead of autocompleting resources, it autocompletes inputs and outputs for modules in addition to updating some of the code to work with Terraform >0.12.

Much like the original Terraform Autocomplete, this extension is very beta and may end up becoming obsolete by the time Terraform's official VS Code extension matures. However, it may help to provide a solution while we wait for more feature-rich autocomplete support in VS Code for Terraform.

Companion extensions

Pair this extension with the official Terraform VS Code extension to provide syntax highlighting and some autocomplete for resources.

Features

The extension for the time being only works for modules hosted in the Terraform registry. There is support for public and private modules by utilizing the APIs provided by Hashicorp. To take advantage of modules hosted in private registries, log in to your account by running terraform login. The extension will automatically grab the token saved in the ~/.terraformrc file and include in the Authorization headers to the registry API (https://registry.terraform.io or https://app.terraform.io/api/registry).

About

Basic autocomplete/hinting for terraform in Visual Studio Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%