Skip to content

Commit d54f0a9

Browse files
author
Jon Wayne Parrott
committed
Fixing links and adding readme for compute engine
1 parent d6e05d6 commit d54f0a9

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

compute/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Google Compute Engine Samples
2+
3+
This section contains samples for [Google Compute Engine](https://cloud.google.com/compute).
4+
5+
## Running the samples
6+
7+
1. Your environment must be setup with [authentication
8+
information](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork). *Note* that Cloud Monitoring does not currently work
9+
with `gcloud auth`. You will need to use a *service account* when running
10+
locally and set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable.
11+
12+
$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
13+
14+
2. Install dependencies from the top-level [`requirements.txt`](../requirements.txt):
15+
16+
$ pip install -r requirements.txt
17+
18+
3. Depending on the sample, you may also need to create resources on the [Google Developers Console](https://console.developers.google.com). Refer to the sample description and associated documentation page.
19+
20+
## Additional resources
21+
22+
For more information on Compute Engine you can visit:
23+
24+
> https://cloud.google.com/compute
25+
26+
For more information on the Cloud Monitoring API Python library surface you
27+
can visit:
28+
29+
> https://developers.google.com/resources/api-libraries/documentation/compute/v1/python/latest/
30+
31+
For information on the Python Client Library visit:
32+
33+
> https://developers.google.com/api-client-library/python

compute/api/create_instance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
Creates a new compute engine instance and uses it to apply a caption to
2020
an image.
2121
22-
https://cloud.google.com/bigquery/querying-data#asyncqueries
22+
https://cloud.google.com/compute/docs/tutorials/python-guide
2323
24-
For more information, see the README.md under /bigquery.
24+
For more information, see the README.md under /compute.
2525
"""
2626

2727
import argparse

0 commit comments

Comments
 (0)