This guide is a walkthrough for deploying a BOSH director with bbl
on GCP. Upon completion, you will have the following:
- A BOSH director
- A jumpbox
- A set of randomly generated BOSH director credentials
- A generated keypair allowing you to SSH into the BOSH director and any instances BOSH deploys
- A copy of the manifest the BOSH director was deployed with
- A basic cloud config
In order for bbl
to interact with GCP, a service account must be created.
gcloud iam service-accounts create <service account name>
gcloud iam service-accounts keys create --iam-account='<service account name>@<project id>.iam.gserviceaccount.com' <service account name>.key.json
gcloud projects add-iam-policy-binding <project id> --member='serviceAccount:<service account name>@<project id>.iam.gserviceaccount.com' --role='roles/editor'
-
Export environment variables.
export BBL_IAAS=gcp export BBL_GCP_REGION= export BBL_GCP_SERVICE_ACCOUNT_KEY=
or powershell:
$env:BBL_IAAS="gcp" $env:BBL_GCP_REGION= $env:BBL_GCP_SERVICE_ACCOUNT_KEY=
-
Create an empty directory to use as your bbl state directory.
mkdir some-bbl-state-dir cd some-bbl-state-dir
-
Create infrastructure, jumpbox, and bosh director.
bbl up