1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Terraformビルドした時の手順

Posted at

経緯

2度目のapply実行時にaws_security_group_ruleでWarming出ていたので
ビルドしたら直ったりしないか試してみた。

いろいろ調べるともともとの原因は#2294で
対応したのが#2376だったので現時点ではWarming出るっぽい。

環境準備

brewでMercurialとGoをインストールする

brew install hg
brew install go

環境変数を設定する

mkdir -p /work/golang #GOPATH用のディレクトリ作成

PATHを通しておく

~/.zshrc

# Set GOPATH
export GOPATH="/work/golang"

# Set GOROOT
export GOROOT=/usr/local/opt/go/libexec

# PATH is added to the GOROOT.
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

ビルドする

mkdir -p /work/golang/src/github.com/hashicorp
cd /work/golang/src/github.com/hashicorp
git clone git@github.com:hashicorp/terraform.git
cd /work/golang/src/github.com/hashicorp/terraform
make updatedeps
make
make dev

動作確認をする

➜ terraform git:(master) pwd
/work/golang/src/github.com/hashicorp/terraform
➜ terraform git:(master) bin/terraform -version
Terraform v0.6.1-dev (94bc96d3de7bbc78bcf0df6a7fc8db71260d49aa)
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?