Google Cloud¶
The Google Cloud command line interface, or gcloud CLI, allows you to create and manage Google Cloud resources and services directly on the command line. With this component of the Cloud CLI Extension, you can interact with Google Cloud directly from LimaCharlie.
This extension uses Google Cloud's native CLI tool.
Example¶
The following example stops the specified GCP compute instance.
- action: extension request
extension action: run
extension name: ext-cloud-cli
extension request:
tool: '{{ "gcloud" }}'
command_tokens:
- compute
- instances
- stop
- '{{ .routing.hostname }}'
credentials: '{{ "hive://secret/secret-name" }}'
Credentials¶
To utilize Google Cloud CLI capabilities, you will need:
- A GCP service account JSON key. See Google Cloud's service account keys guide.
- Create a secret in the secrets manager in the following format: