shell-whiz-toolkit/gcloud/get_gcp_apps.sh

13 lines
203 B
Bash
Executable file

#!/bin/bash
projects=$(gcloud projects list | tail -n +2 | awk '{ print $1}')
list_app () {
gcloud app services list --project $1 2>&1 | grep -v ERROR
}
for x in $projects;
do
list_app $x
done