mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
60 lines
1.7 KiB
Text
60 lines
1.7 KiB
Text
NAME
|
|
gcloud spanner instances create - create a Cloud Spanner instance
|
|
|
|
SYNOPSIS
|
|
gcloud spanner instances create INSTANCE --config=CONFIG
|
|
--description=DESCRIPTION
|
|
(--nodes=NODES | --processing-units=PROCESSING_UNITS) [--async]
|
|
[GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Create a Cloud Spanner instance.
|
|
|
|
EXAMPLES
|
|
To create a Cloud Spanner instance, run:
|
|
|
|
$ gcloud spanner instances create my-instance-id \
|
|
--config=regional-us-east1 \
|
|
--description=my-instance-display-name --nodes=3
|
|
|
|
POSITIONAL ARGUMENTS
|
|
INSTANCE
|
|
Cloud Spanner instance ID.
|
|
|
|
REQUIRED FLAGS
|
|
--config=CONFIG
|
|
Instance configuration defines the geographic placement and replication
|
|
of the databases in that instance. Available configurations can be
|
|
found by running "gcloud spanner instance-configs list"
|
|
|
|
--description=DESCRIPTION
|
|
Description of the instance.
|
|
|
|
Exactly one of these must be specified:
|
|
|
|
--nodes=NODES
|
|
Number of nodes for the instance.
|
|
|
|
--processing-units=PROCESSING_UNITS
|
|
Number of processing units for the instance.
|
|
|
|
OPTIONAL FLAGS
|
|
--async
|
|
Return immediately, without waiting for the operation in progress to
|
|
complete.
|
|
|
|
GCLOUD WIDE FLAGS
|
|
These flags are available to all commands: --access-token-file, --account,
|
|
--billing-project, --configuration, --flags-file, --flatten, --format,
|
|
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
|
--trace-token, --user-output-enabled, --verbosity.
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
NOTES
|
|
These variants are also available:
|
|
|
|
$ gcloud alpha spanner instances create
|
|
|
|
$ gcloud beta spanner instances create
|
|
|