necogcp
is a command-line tool for GCP provisioning.
-
necogcp create-image
Build
vmx-enabled
image. Ifvmx-enabled
image already exists, it is re-created. -
necogcp create-instance
Launch
host-vm
instance usingvmx-enabled
image. Ifhost-vm
instance already exists, it is re-created. -
necogcp create-runner
Launch runner instance which runs self-hosted-runner with
vmx-enabled
image. If runner instance already exists in the project, new runner is not created You must have ServiceAccount which has permissionsecretmanager.versions.access
in your project. -
necogcp delete-image
Delete
vmx-enabled
image. -
necogcp delete-instance
Delete
host-vm
instance. -
necogcp setup-instance
Setup
host-vm
orvmx-enabled
instance. It can run on only them. -
necogcp create-snapshot
Create
home
volume snapshot. This subcommand is mainly for backup purpose. -
necogcp restore-snapshot
Restore
home
volume from the latest snapshot in the zone specified by the flag--dest-zone
. You have to delete thehome
persistent disk manually before restoration.
-
necogcp neco-test create-image
Build
vmx-enabled
image on neco-test. Ifvmx-enabled
image already exists, it is re-created. -
necogcp neco-test delete-image
Delete
vmx-enabled
image on neco-test. -
necogcp neco-test extend INSTANCE_NAME
Extend 2 hours given instance on the neco-test project to prevent deleted by GAE app.
The subcommands necogcp neco-test create-instance | delete-instance | list-instance
are used for auto-dctest
feature. See auto-dctest.md
-
necogcp completion
Dump bash completion rules for
necogcp
command.
Flag | Default value | Description |
---|---|---|
--config |
$HOME/.necogcp.yml |
Viper configuration file. |
--dest-zone |
an empty string |
zone to restore home volume |
See config.md