Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/g14a/tf

A CLI Tool to easily generate your Terraform configuration
https://github.com/g14a/tf

aws cli golang promptui terraform

Last synced: about 9 hours ago
JSON representation

A CLI Tool to easily generate your Terraform configuration

Awesome Lists containing this project

README

        

## Tf

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

![OpenSource](https://img.shields.io/badge/Open%20Source-000000?style=for-the-badge&logo=github)
![go](https://img.shields.io/badge/-Written%20In%20Go-00add8?style=for-the-badge&logo=Go&logoColor=ffffff)
![cli](https://img.shields.io/badge/-Build%20for%20CLI-000000?style=for-the-badge&logo=Powershell&logoColor=ffffff)

[![Go Report Card](https://goreportcard.com/badge/github.com/g14a/tf)](https://goreportcard.com/report/github.com/g14a/tf)
[![Go Workflow Status](https://github.com/g14a/tf/workflows/Go/badge.svg)](https://github.com/g14a/tf/workflows/Go/badge.svg)
![CodeQL](https://github.com/g14a/tf/workflows/CodeQL/badge.svg)

### 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 :blush:)

[![asciicast](https://asciinema.org/a/p6e5I9fNEslVdcaKFAJHgRfdt.svg)](https://asciinema.org/a/p6e5I9fNEslVdcaKFAJHgRfdt)

### Fetching Boilerplate code for a resource

1. Search through the resources for a given provider
```shell
tf resource -p -b
```
2. Directly provide the resource as well
```shell
tf resource -p -r -b
```

[![asciicast](https://asciinema.org/a/IMsCtr687FYZKkjJEuJHjMvhH.svg)](https://asciinema.org/a/IMsCtr687FYZKkjJEuJHjMvhH)

### 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](https://github.com/g14a/tf/blob/main/CONTRIBUTING.md)

### Roadmap
* Google and Azure
* Repeatable configuration