Skip to content

Instantly share code, notes, and snippets.

@vidhyachari
Created March 28, 2020 22:31
Show Gist options
  • Save vidhyachari/636ff0c07d09e5fda829d3d6d9c8f802 to your computer and use it in GitHub Desktop.
Save vidhyachari/636ff0c07d09e5fda829d3d6d9c8f802 to your computer and use it in GitHub Desktop.
# Script to download custom/third party tf plugin and place it inside the terraform plugins directory
FILE=terraform_provider_xxxxx_v0.1.1_x4
if [ ! -f "$FILE" ]; then
cd /home/atlantis/.terraform.d/plugins
wget https://github.com/xxxxxx/terraform-provider-xxxxx/releases/download/v0.1.1/linux_amd64.zip -O tmp.zip && unzip -o tmp.zip && rm tmp.zip
cd /home/atlantis/.terraform.d/plugins/linux_amd64
mv terraform-provider-xxxxx terraform-provider-xxxxx_v0.6.1_x4
else
echo "$FILE exists"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment