Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crazyoptimist/gcp-vm-control
Turn on and off Google Cloud VMs as needed
https://github.com/crazyoptimist/gcp-vm-control
Last synced: 13 days ago
JSON representation
Turn on and off Google Cloud VMs as needed
- Host: GitHub
- URL: https://github.com/crazyoptimist/gcp-vm-control
- Owner: crazyoptimist
- License: mit
- Created: 2024-04-08T08:08:09.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-09T09:39:07.000Z (7 months ago)
- Last Synced: 2024-04-10T01:05:53.214Z (7 months ago)
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Cloud VM Control
This application start/stop Google Cloud VMs as needed.
## Generate Application Default Credentials
To use this application, you need to install the gcloud CLI and initialize it.
https://cloud.google.com/sdk/docs/install
I 100% assume that your google account has necessary permissions to start and stop the VM
- To stop a VM: `compute.instances.stop` on the VM
- To start a VM: `compute.instances.start` on the VM
- To start a VM that uses encryption keys: `compute.instances.startWithEncryptionKey` on the VM
- To reset a VM: `compute.instances.reset` on the VM```bash
# Initialize the cli
gcloud init# Generate ADC (application default credentials)
gcloud auth application-default login
```## Usage
```bash
gcp-vm-control --help
```