Skip to content

Latest commit

 

History

History

cloud_spanner

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Cloud Spanner

This template creates a Cloud Spanner instance cluster and database.

Prerequisites

Deployment

Resources

Properties

See the properties section in the schema file(s):

Usage

  1. Clone the Deployment Manager samples repository
    git clone https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit
  1. Go to the dm directory
    cd dm
  1. Copy the example DM config to be used as a model for the deployment, in this case examples/cloud_spanner.yaml
    cp templates/cloud_spanner/examples/cloud_spanner.yaml my_cloud_spanner.yaml
  1. Change the values in the config file to match your specific GCP setup. Refer to the properties in the schema files described above.
    vim my_cloud_spanner.yaml  # <== change values to match your GCP setup
  1. Create your deployment as described below, replacing <YOUR_DEPLOYMENT_NAME> with your with your own deployment name
    gcloud deployment-manager deployments create <YOUR_DEPLOYMENT_NAME> \
    --config my_cloud_spanner.yaml
  1. In case you need to delete your deployment:
    gcloud deployment-manager deployments delete <YOUR_DEPLOYMENT_NAME>

Examples