All Projects → alexandrst88 → Terraform Variables Generator

alexandrst88 / Terraform Variables Generator

Simple Tool for Generate Variables file from Terraform Configuration

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Terraform Variables Generator

Multi Env Deploy
Complete example of deploying complex web apps to AWS using Terraform, Ansible, and Packer
Stars: ✭ 132 (-8.33%)
Mutual labels:  terraform
Terraform Aws Elasticsearch
Terraform module to provision an Elasticsearch cluster with built-in integrations with Kibana and Logstash.
Stars: ✭ 137 (-4.86%)
Mutual labels:  terraform
Terraform Exec
Terraform CLI commands via Go.
Stars: ✭ 142 (-1.39%)
Mutual labels:  terraform
Terraform Google Gke Cluster
A Terraform module to create a best-practise Google Kubernetes Engine (GKE) cluster.
Stars: ✭ 133 (-7.64%)
Mutual labels:  terraform
Tensor
Tensor - Comprehensive web-based automation framework and Centralized infrastructure management platform
Stars: ✭ 136 (-5.56%)
Mutual labels:  terraform
Terraform Aws Cicd
Terraform Module for CI/CD with AWS Code Pipeline and Code Build
Stars: ✭ 138 (-4.17%)
Mutual labels:  terraform
Terraform Aws Vpc
Terraform Module that defines a VPC with public/private subnets across multiple AZs with Internet Gateways
Stars: ✭ 130 (-9.72%)
Mutual labels:  terraform
Terraform Aws Landing Zone
Terraform Module for AWS Landing Zone
Stars: ✭ 142 (-1.39%)
Mutual labels:  terraform
Dce
Disposable Cloud Environment
Stars: ✭ 137 (-4.86%)
Mutual labels:  terraform
Terraspace
Terraspace: The Terraform Framework
Stars: ✭ 137 (-4.86%)
Mutual labels:  terraform
Aws Maintenance Lambda
A lambda function to send alerts (to Slack, HipChat) on AWS maintenance events.
Stars: ✭ 133 (-7.64%)
Mutual labels:  terraform
Terragrunt Infrastructure Modules Example
A repo used to show examples file/folder structures you can use with Terragrunt and Terraform
Stars: ✭ 135 (-6.25%)
Mutual labels:  terraform
Example Pragmatic Terraform On Aws
技術書典6で頒布した『Pragmatic Terraform on AWS 』のサンプルコードを公開しています
Stars: ✭ 140 (-2.78%)
Mutual labels:  terraform
Terraform Provider Scaffolding
Quick start repository for creating a Terraform provider
Stars: ✭ 129 (-10.42%)
Mutual labels:  terraform
Terraform With Circleci Example
This is an example of automatic deployments of your infrastructure using terraform and CircleCI 2.0 workflows
Stars: ✭ 142 (-1.39%)
Mutual labels:  terraform
Terraform Provider Docker
As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/kreuzwerker/docker/latest
Stars: ✭ 131 (-9.03%)
Mutual labels:  terraform
Terraform Aws Airship Ecs Service
Terraform module which creates an ECS Service, IAM roles, Scaling, ALB listener rules.. Fargate & AWSVPC compatible
Stars: ✭ 139 (-3.47%)
Mutual labels:  terraform
Terraform Provider Stripe
A Terraform Provider for Stripe
Stars: ✭ 143 (-0.69%)
Mutual labels:  terraform
Kubify
Terraform Template to Setup a Kubernetes Cluster on OpenStack/AWS/Azure
Stars: ✭ 142 (-1.39%)
Mutual labels:  terraform
Terraform Vsphere Kubespray
Deploy a Kubernetes HA cluster on VMware vSphere
Stars: ✭ 141 (-2.08%)
Mutual labels:  terraform

terraform-variables-generator

Terraform versions support version version version Build Status Twitter

Simple Tool to Generate Variables file from Terraform Configuration. It will find all *.tf files in current directory, and generate variables.tf file. If you already have this file, it will ask to override it.

Version Supports
0.11.* yes
0.12.* yes
0.13.* yes

Build

go build .

Usage

./terraform-variables-generator

It will find all *.tf files in current directory, and generate variables.tf file. If you already have this file, it will ask to override it.

Example

resource "aws_vpc" "vpc" {
  cidr_block           = var.cidr
  enable_dns_hostnames = var.enable_dns_hostnames
  enable_dns_support   = var.enable_dns_support

  tags {
    Name = var.name
  }
}

resource "aws_internet_gateway" "vpc" {
  vpc_id = aws_vpc.vpc.id

  tags {
    Name = "${var.name}-igw"
  }
}

Will generate

variable "ami" {
  description = ""
}

variable "instance_type" {
  description = ""
}

variable "cidr" {
  description = ""
}

variable "enable_dns_hostnames" {
  description = ""
}

variable "enable_dns_support" {
  description = ""
}

variable "name" {
  description = ""
}

Tests

Run tests and linter

go test -v -race ./...
golint -set_exit_status $(go list ./...)

TO DO

Move Locals and Variables to Single Interface

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].