feat: Add gcloud pipeline scripts and enhance k3s VM startup with additional checks and installations
This commit is contained in:
parent
31af97ced8
commit
ff815fa82c
6 changed files with 138 additions and 4 deletions
16
gcloud/tf/scripts/list_gloud_infra.sh
Executable file
16
gcloud/tf/scripts/list_gloud_infra.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
. .env
|
||||
|
||||
if [ -z "$PROJECT_NAME" ]; then
|
||||
echo "❌ PROJECT_NAME is not set. Please add PROJECT_NAME=<your_project_name> to your .env file before running this script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
gcloud compute instances list --project="$PROJECT_NAME" && gcloud compute disks list --project="$PROJECT_NAME" && gcloud compute firewall-rules list --project="$PROJECT_NAME" && gcloud storage buckets list --project="$PROJECT_NAME"
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "❌ gcloud is not authenticated, please run 'gcloud auth login' first"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue