:tools terraform

Infrastructure as code

1. Description

This module adds support for working with Terraform files in Doom Emacs. This includes syntax highlighting, intelligent code completion, and the ability to run Terraform commands directly from Emacs.

1.1. Maintainers

This module has no dedicated maintainers. Become a maintainer?

1.2. Module flags

This module has no flags.

1.4. Hacks

No hacks documented for this module.

2. Prerequisites

The terraform executable must be installed and accessible from your PATH.

3. Usage

3.1. Syntax highlighting

Syntax highlighting is provided from terraform-mode and hcl-mode.

3.2. Code formatting

:tools terraform does not provide code formatting directly, but :editor format works with Terraform files.

3.3. Code navigation

Code navigation is supported through imenu from terraform-mode.

3.4. Code completion

Code completion of Terraform builtins is provided from company-terraform and generally works well despite being generated through a static (outdated) file.

company-terraform also provides code completion of resources within your project.

3.5. Documentation

Documentation is accessible through the normal company-mode show documentation functionality, thanks to company-terraform.

3.6. Executing Terraform commands

This module provides commands under the localleader to run the most common Terraform operations:

key description
i Run terraform init
p Run terraform plan
a Run terraform apply

4. TODO Configuration

This module has no configuration documentation yet. Write some?

5. Troubleshooting

There are no known problems with this module. Report one?

6. TODO Appendix

This module has no appendix yet. Write one?