cri-o/vendor/cloud.google.com/go/examples/bigtable/helloworld/README.md
Jacek J. Łakis bf51655a7b vendor: Update vendoring for the exec client and server implementations
Signed-off-by: Jacek J. Łakis <jacek.lakis@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-04-24 18:38:41 +02:00

1.7 KiB

Cloud Bigtable Hello World in Go

This is a simple application that demonstrates using the Google Cloud APIs Go Client Library to connect to and interact with Cloud Bigtable.

Prerequisites

  1. Set up Cloud Console.
  2. Go to the Cloud Console and create or select your project. You will need the project ID later.
  3. Go to Settings > Project Billing Settings and enable billing.
  4. Select APIs & Auth > APIs.
  5. Enable the Cloud Bigtable API and the Cloud Bigtable Admin API. (You may need to search for the API).
  6. Set up gcloud.
  7. gcloud components update
  8. gcloud auth login
  9. gcloud config set project PROJECT_ID
  10. Provision a Cloud Bigtable instance
  11. Follow the instructions in the user documentation to create a Google Cloud Platform project and Cloud Bigtable instance if necessary.
  12. You'll need to reference your project id and instance id to run the application.

Running

  1. From the hello_world example folder, go run main.go -project PROJECT_ID -instance INSTANCE_ID, substituting your project id and instance id.

Cleaning up

To avoid incurring extra charges to your Google Cloud Platform account, remove the resources created for this sample.

  1. Go to the Clusters page in the Cloud Console.

    Go to the Clusters page

  2. Click the cluster name.

  3. Click Delete.

    Delete

  4. Type the cluster ID, then click Delete to delete the cluster.