gcloud compute instances describe
command to get the details of the instance.gcloud compute instances delete-access-config
command to remove the public IP from the instance:
gcloud compute instances describe
command to get the details of the instance.gcloud compute instances add-metadata
command to enable OS Login for the instance:
gcloud compute firewall-rules list
command to get the list of firewall rules.gcloud compute firewall-rules update
command to restrict SSH access to specific IP ranges:
google-cloud-sdk
library to programmatically manage GCP Compute instances.google-cloud-sdk
library to update the instances’ configurations to match the secure baseline.google-cloud-sdk
library to retrieve a list of GCP Compute instances.google-cloud-sdk
library to update the instances’ network settings to enforce the required controls.google-cloud-sdk
library to retrieve logs and events related to GCP Compute instances.google-cloud-sdk
library to take appropriate actions, such as blocking the source IP or terminating the compromised instances.