Skip to content

Instantly share code, notes, and snippets.

@ccjon
ccjon / setup_gcp_bastion.sh
Created May 28, 2022 18:21 — forked from mikesparr/setup_gcp_bastion.sh
Google Cloud bastion with IAP tunneling
#!/usr/bin/env bash
# set vars
export PROJECT_ID=$(gcloud config get-value project)
export PROJECT_USER=$(gcloud config get-value core/account) # set current user
export PROJECT_NUMBER=$(gcloud projects describe $PROJECT_ID --format="value(projectNumber)")
export IDNS=${PROJECT_ID}.svc.id.goog # workflow identity domain
export REGION="us-central1"
export ZONE="us-central1-a"
#!/bin/bash
echo "all params echo'd except -e if it is the first"
echo "$@"
@ccjon
ccjon / temp
Created July 7, 2015 00:45
onename verification
There Once was a man from Boston
Who Bought himself an Austin
...