From 59f030dbd23c6b6be95498aebd4c8162e59d0e73 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Mon, 13 Dec 2021 14:00:28 -0600 Subject: [PATCH] List used GCP resources --- scripts/gcp-list.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 scripts/gcp-list.sh diff --git a/scripts/gcp-list.sh b/scripts/gcp-list.sh new file mode 100755 index 0000000..6c5da78 --- /dev/null +++ b/scripts/gcp-list.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gcloud asset search-all-resources --format='value(name)' |grep -vE '/(services|networks|routes|subnetworks|firewalls|serviceAccounts)/' | sort