How To Use Terraform like a Pro: Part 1

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • terraformer

    CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code

    That’s where Terraformer, a CLI tool built in Go language, comes into play. Terraformer imports the already created infrastructure as HashiCorp TF files and includes the .tfstate file. It also provides options for remote state sharing and exporting to specified bucket locations. It has a Terraform-like execution plan feature which allows you to see the blueprint of the configuration it’s going to pull before it executes on the existing infrastructure.

  • tflint

    A Pluggable Terraform Linter

    Either use TFLint in your laptop or a CI/CD pipeline to validate both the structure and content of the Terraform configuration.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • goss

    Quick and Easy server testing/validation

    Use GOSS, a YML-based open-source tool that can assert the test results (i.e., verifying if the SSH port 22 is closed or not).

  • Do unit testing using RSpechttps://github.com/bsnape/rspec-terraform-based tools, such as Serverspec and Inpec. You can also use a TDD approach, but I personally feel this slows down the development work.

  • kitchen-terraform

    Test Kitchen plugins for testing Terraform configurations

    For integration testing, use kitchen-framework, which DevOps engineers used with Chef in the past. Terratest, which can test anything that has API, is another option.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts