Skip to content
/ tf Public

A CLI Tool to easily generate your Terraform configuration

License

Notifications You must be signed in to change notification settings

g14a/tf

Repository files navigation

Tf

Tf is a command line tool to easily generate your Terraform configuration with an interactive prompt.

OpenSource go cli

Go Report Card Go Workflow Status CodeQL

Inspiration

Boredom in Covid-19

Installation

  • go get github.com/g14a/tf
  • Or clone the master branch and run go install in the root directory.

Features

  • Provider and resource support.
  • Boilerplate code without having to go to the official docs.
  • In place documentation of fields.
  • Custom Terraform validators for int,bool,string,tags
  • Currently supports AWS EC2, S3, RDS, ELB, Lambda, VPC
  • Less development overhead(I guess 😊)

asciicast

Fetching Boilerplate code for a resource

  1. Search through the resources for a given provider
tf resource -p <provider> -b
  1. Directly provide the resource as well
tf resource -p <provider> -r <resource-in-the-provider> -b

asciicast

Stability

This is a highly work in progress project, but I do my best to keep it stable so that things don't break. Please report issues if you find this tool useful and I will try to make time to resolve them.

Contribution

Please check CONTRIBUTION.md

Roadmap

  • Google and Azure
  • Repeatable configuration