summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-15T15·28+0100
committerVincent Ambo <tazjin@google.com>2019-08-15T15·28+0100
commitb652ea2f036b6377addc04481162d889fac39450 (patch)
tree168f8684de695f767b2709eb9ec29e16c7baecc0
parent38493b83ea1b2077a16fcdfb837fdacf1bff1a07 (diff)
feat(tools): Add Terraform 0.12 to local tools r/33
This is pre-configured with the GCP provider.
-rw-r--r--default.nix1
-rwxr-xr-xtools/bin/__dispatch.sh3
l---------tools/bin/terraform1
3 files changed, 5 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index b433b1dfba61..ba9e108565de 100644
--- a/default.nix
+++ b/default.nix
@@ -12,6 +12,7 @@ let
 
     # Third-party projects (either vendored or modified from nixpkgs) go here:
     gitAppraise = pkgs.callPackage ./third_party/go/git-appraise/git-appraise {};
+    terraform-gcp = pkgs.terraform_0_12.withPlugins(p: [ p.google ]);
   };
 
   # The pinned commit here is identical to the public nixery.dev
diff --git a/tools/bin/__dispatch.sh b/tools/bin/__dispatch.sh
index d2f67d546423..b0bbbf984b8c 100755
--- a/tools/bin/__dispatch.sh
+++ b/tools/bin/__dispatch.sh
@@ -16,6 +16,9 @@ case "${TARGET_TOOL}" in
   stylish-haskell)
     attr="haskellPackages.stylish-haskell"
     ;;
+  terraform)
+    attr="terraform-gcp"
+    ;;
   *)
     echo "The tool '${TARGET_TOOL}' is currently not installed in this repository."
     exit 1
diff --git a/tools/bin/terraform b/tools/bin/terraform
new file mode 120000
index 000000000000..8390ec9c9652
--- /dev/null
+++ b/tools/bin/terraform
@@ -0,0 +1 @@
+__dispatch.sh
\ No newline at end of file