Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple Tool for Generate Variables file from Terraform Configuration

NotificationsYou must be signed in to change notification settings

alexandrst88/terraform-variables-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform versions supportversionversionversionBuild StatusTwitter

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.

VersionSupports
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.cidrenable_dns_hostnames=var.enable_dns_hostnamesenable_dns_support=var.enable_dns_supporttags {Name=var.name  }}resource"aws_internet_gateway""vpc" {vpc_id=aws_vpc.vpc.idtags {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

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

TO DO

Move Locals and Variables to Single Interface

About

Simple Tool for Generate Variables file from Terraform Configuration

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors6

Languages


[8]ページ先頭

©2009-2025 Movatter.jp