Skip to content

Instantly share code, notes, and snippets.

@bentterp
Created April 25, 2019 05:39
Show Gist options
  • Save bentterp/d9e8dcc9d17bfcce87a7563a769e9070 to your computer and use it in GitHub Desktop.
Save bentterp/d9e8dcc9d17bfcce87a7563a769e9070 to your computer and use it in GitHub Desktop.
My shortcut to get an up2date version of the AzureRM provider for Terraform 0.12 until the regular release flow is in place
#!/bin/bash
cd $GOPATH/src/github.com/terraform-providers
test -d terraform-provider-azurerm && rm -rf terraform-provider-azurerm
git clone https://github.com/terraform-providers/terraform-provider-azurerm.git
cd terraform-provider-azurerm
rm -rf vendor
govendor init
govendor fetch github.com/hashicorp/terraform/...
govendor fetch +m
go build
ln -sf $GOPATH/bin/terraform-provider-azurerm ~/.terraform.d/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment