This is an alternative SaltStack provisioner for Terraform
make build
Copy the .terraform
to your terraform project
Building the plugin also places a copy of .terraform
in the example project
make build
The Azure example requires us to run the az tool to login and view credentials required for the environment variables.
az login
Set Terraform environment variables for the Azure provider
cat << EOF >> ~/.profile
export TF_VAR_subscription_id=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export TF_VAR_client_id=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export TF_VAR_client_secret=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export TF_VAR_tenant_id=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
EOF
Execute Terraform to deploy the infrastructure.
cd examples/azure-vm
make deploy
rangertaha