hcl-lint-fixer

command module
v0.0.0-...-e66618d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 13 Imported by: 0

README

variable-fixer

About

  • terraformの variables.tf に対して下記の値を可能な限り自動的に作成します
    • description
    • type

How to use

  • 下記のようにコマンドを実行
./bin/fixer path/to/variables.tf
  • variables.tf が修正され、元の状態が variables.tf.bak に退避されるのでdiffを確認

    • type が補完できなかったvariableに関しては、標準出力に出てくるので手動で埋める必要がある

      This valiable could not be filled type value : xxxxx
      
  • terraform plan で想定通りの結果になることを確認

  • variables.tf.bak を削除してcommit

How to update

  • コンパイル言語なので、コードを修正したらbuildが必要
# version確認
go version
go version go1.18.4 darwin/arm64

# buildして成果物を更新
go build -o bin/fixer .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lintfixer module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL