#!/usr/bin/env bash # Remove existing BOSH deployments bosh -e <%= @values['bosh']['name'] %> -d vault deld # Destroy BOSH director bosh delete-env deployments/bosh/bosh.yml \ --state=config/state.json \ --vars-store=config/creds.yml \ --vars-file=config/bosh-vars.yml \ --var-file gcp_credentials_json=<%= @values['gcp']['service_account'] %> \ -v tags='[platform-internal, no-ip]' \ -o deployments/bosh/cpi.yml \ -o deployments/bosh/jumpbox-user.yml # Destroy Terraform-generated infrastructure pushd terraform && terraform destroy && popd # Remove files generated by kite rm -rf terraform deployments config/{creds.yml,bosh_vars.yml,jumpbox.key} bin/*.sh