79309919

Date: 2024-12-26 16:25:30
Score: 2
Natty:
Report link

You cannot really directly determine from within a shutdown script that the instance is being deleted. However, using gcloud compute instance-groups managed list-instances will give you an output of the current actions on instances with the column "ACTION" and there are statuses like RESTARTING, STOPPING, or DELETING.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: minet