- Install (Homebrew)[https://brew.sh/ja/]
miseとかasdfでもなんでもいい。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Clone this repo
git clone https://github.com/tohta/terraform-pagerduty-example.git
- Set PD API Access Key 好きな方法でよし。
cat .envrc
export TF_VAR_pd_token=*******
- Install Terraform
brew install terraform
- Terrafrom init
terraform init
- Terrafrom plan
terraform plan
- Terraform apply
terraform apply