Skip to content

Commit b5c298d

Browse files
authored
docs: updates to cloud shell guide (#2543)
1 parent 28c1610 commit b5c298d

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

guide/src/setting_up_rust_on_cloud_shell.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ limitations under the License.
1616

1717
# Setting up Rust on Cloud Shell
1818

19-
Cloud Shell is a great environment to run small examples and tests.
19+
Cloud Shell is a great environment to run small examples and tests. This guide
20+
shows you how to configure Rust and install one of the Cloud Client Libraries in
21+
Cloud Shell.
2022

2123
## Start up Cloud Shell
2224

23-
1. Open <https://shell.cloud.google.com> to start a new shell.
25+
1. In the Google Cloud console [project selector], select a project.
2426

25-
1. Select a project.
27+
1. Open <https://shell.cloud.google.com> to start a new shell. You might be
28+
prompted to [authorize Cloud Shell] to use your credentials for Google Cloud
29+
API calls.
2630

2731
## Configure Rust
2832

@@ -53,19 +57,19 @@ Cloud Shell is a great environment to run small examples and tests.
5357
cd my-project
5458
```
5559

56-
1. Add the [Secret Manager] client library to the new project
60+
1. Add the [Secret Manager] client library to the new project:
5761

5862
```shell
5963
cargo add google-cloud-secretmanager-v1
6064
```
6165

62-
1. Add the [google-cloud-gax] crate to the new project
66+
1. Add the [google-cloud-gax] crate to the new project:
6367

6468
```shell
6569
cargo add google-cloud-gax
6670
```
6771

68-
1. Add the [tokio] crate to the new project
72+
1. Add the [tokio] crate to the new project:
6973

7074
```shell
7175
cargo add tokio --features macros
@@ -85,10 +89,18 @@ Cloud Shell is a great environment to run small examples and tests.
8589
cargo run [PROJECT ID]
8690
```
8791

92+
The program will print the secrets associated with your project ID. If you
93+
don't see any secrets, you might not have any in Secret Manager. You can
94+
[create a secret] and rerun the program, and you should see the secret
95+
printed in the output.
96+
8897
<!-- markdownlint-enable MD029 -->
8998

99+
[authorize cloud shell]: https://cloud.google.com/shell/docs/auth
90100
[cloud shell]: https://cloud.google.com/shell
101+
[create a secret]: https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets
91102
[google-cloud-gax]: https://crates.io/crates/google-cloud-gax
103+
[project selector]: https://console.cloud.google.com/projectselector2/home/dashboard
92104
[rustup]: https://rust-lang.github.io/rustup/
93105
[secret manager]: https://cloud.google.com/secret-manager/docs/overview
94106
[tokio]: https://crates.io/crates/tokio

0 commit comments

Comments
 (0)