Skip to content

Instantly share code, notes, and snippets.

@nov05
Last active May 11, 2026 18:10
Show Gist options
  • Select an option

  • Save nov05/ab50bb6c73befdc363f66e30b6de075e to your computer and use it in GitHub Desktop.

Select an option

Save nov05/ab50bb6c73befdc363f66e30b6de075e to your computer and use it in GitHub Desktop.

🟒 Cloud Natural Language API: Qwik Start (GSP097)

https://www.skills.google/games/7174/labs/44444

https://github.com/nov05/gcp-skills-boost/commit/ed5437df2d384f3707cc8cf0705aabfe5c64baa7

⚠️ Test result: The old script didn't pass any check of the lab.
Cause of the errors: It takes time to create the service account.
Some wait-and-continue logic should be added to the script.

Welcome to Cloud Shell! Type "help" to get started, or type "gemini" to try prompting with Gemini CLI.
Your Cloud Platform project in this session is set to qwiklabs-gcp-02-38fd049cfca4.
Use `gcloud config set project [PROJECT_ID]` to change to a different project.
student_02_810e34a16c7b@cloudshell:~ (qwiklabs-gcp-02-38fd049cfca4)$ curl -LO https://raw.githubusercontent.com/Itsabhishek7py/GoogleCloudSkillsboost/refs/heads/main/Cloud%20Natural%20Language%20API%3A%20Qwik%20Start/abhishekGSP097.sh
sudo chmod +x abhishekGSP097.sh
./abhishekGSP097.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2521  100  2521    0     0  10237      0 --:--:-- --:--:-- --:--:-- 10206

╔════════════════════════════════════════════════════════╗
          Welcome to Dr. Abhishek's Cloud Lab           
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Fetching the Compute Engine instance zone...
Your active configuration is: [cloudshell-19342]
Created service account [my-natlang-sa].
ERROR: (gcloud.iam.service-accounts.keys.create) NOT_FOUND: Service account projects/-/serviceAccounts/my-natlang-sa@qwiklabs-gcp-02-38fd049cfca4.iam.gserviceaccount.com does not exist. This command is authenticated as student-02-810e34a16c7b@qwiklabs.net which is the active account specified by the [core/account] property.
WARNING: The private SSH key file for gcloud does not exist.
WARNING: The public SSH key file for gcloud does not exist.
WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.
Generating public/private rsa key pair.
Your identification has been saved in /home/student_02_810e34a16c7b/.ssh/google_compute_engine
Your public key has been saved in /home/student_02_810e34a16c7b/.ssh/google_compute_engine.pub
The key fingerprint is:
SHA256:u5ttMFLhFFn3YRNS30cOD9zOwNKCIrhxJvUp2w1K2eQ student_02_810e34a16c7b@cs-592109819300-default
The key's randomart image is:
+---[RSA 3072]----+
|     o. o+..o=Oo.|
|    + +*=...o+=Xo|
|     *++Eo   o.+*|
|    .. =oo      +|
|      o.S .      |
|      . o.       |
|       ..o       |
|         +.      |
|        +o.      |
+----[SHA256]-----+
Warning: Permanently added 'compute.2133499383544526567' (ED25519) to the list of known hosts.
student-02-810e34a16c7b@34.105.23.142: Permission denied (publickey).

Recommendation: To check for possible causes of SSH connectivity issues and get
recommendations, rerun the ssh command with the --troubleshoot option.

gcloud compute ssh linux-instance --project=qwiklabs-gcp-02-38fd049cfca4 --zone=us-west1-b --troubleshoot

Or, to investigate an IAP tunneling issue:

gcloud compute ssh linux-instance --project=qwiklabs-gcp-02-38fd049cfca4 --zone=us-west1-b --troubleshoot --tunnel-through-iap

ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].

╔════════════════════════════════════════════════════════╗
               Lab Completed Successfully!               
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Subscribe our Channel: https://www.youtube.com/@drabhishek.5460
Follow on Instagram: https://www.instagram.com/drabhishek.5460/

student_02_810e34a16c7b@cloudshell:~ (qwiklabs-gcp-02-38fd049cfca4)$ 
@nov05

nov05 commented May 11, 2026

Copy link
Copy Markdown
Author

βœ… Test result: the new script passed all check.

nov05/gcp-skills-boost@cbd1391

Welcome to Cloud Shell! Type "help" to get started, or type "gemini" to try prompting with Gemini CLI.
Your Cloud Platform project in this session is set to qwiklabs-gcp-01-f72baa0da255.
Use `gcloud config set project [PROJECT_ID]` to change to a different project.
student_01_b0f6bf06179f@cloudshell:~ (qwiklabs-gcp-01-f72baa0da255)$ rm -f nov05_gsp097.sh
curl -LO https://raw.githubusercontent.com/nov05/gcp-skills-boost/refs/heads/dev/Cloud%20Natural%20Language%20API%3A%20Qwik%20Start/nov05_gsp097.sh
sudo chmod +x nov05_gsp097.sh
./nov05_gsp097.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2331  100  2331    0     0  24238      0 --:--:-- --:--:-- --:--:-- 24030
Your active configuration is: [cloudshell-25536]
Updated property [compute/region].

πŸ”Ή  Project ID: qwiklabs-gcp-01-f72baa0da255
πŸ”Ή  Project number: 462904279104
πŸ”Ή  Region: us-central1
πŸ”Ή  Zone: us-central1-a

Your active configuration is: [cloudshell-25536]
Created service account [my-natlang-sa].
πŸ”Ή  Waiting for service account to be ready...
πŸ”Ή  Service account is not ready yet... retrying in 5s
πŸ”Ή  Service account is not ready yet... retrying in 5s
πŸ”Ή  Service account my-natlang-sa@qwiklabs-gcp-01-f72baa0da255.iam.gserviceaccount.com is ready!
created key [23c298448939c46227badbf7e214537160d5bb90] of type [json] as [/home/student_01_b0f6bf06179f/key.json] for [my-natlang-sa@qwiklabs-gcp-01-f72baa0da255.iam.gserviceaccount.com]
WARNING: The private SSH key file for gcloud does not exist.
WARNING: The public SSH key file for gcloud does not exist.
WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.
Generating public/private rsa key pair.
Your identification has been saved in /home/student_01_b0f6bf06179f/.ssh/google_compute_engine
Your public key has been saved in /home/student_01_b0f6bf06179f/.ssh/google_compute_engine.pub
The key fingerprint is:
SHA256:JZBpGD5ITueXf14aFadsn7tDYR2qglToKULEPW5wtWg student_01_b0f6bf06179f@cs-128096934255-default
The key's randomart image is:
+---[RSA 3072]----+
|  =.+oo+.   . .  |
| + O.+=+.. . + . |
|  + BE=.+ . = ...|
|   ..* = o o oo..|
|    o o S o o.o. |
|       . + =  .. |
|          +  ..  |
|              .. |
|              .. |
+----[SHA256]-----+
Warning: Permanently added 'compute.4213386615741984018' (ED25519) to the list of known hosts.
{
  "entities": [
    {
      "mentions": [
        {
          "text": {
            "beginOffset": 0,
            "content": "Michelangelo Caravaggio"
          },
          "type": "PROPER"
        },
        {
          "text": {
            "beginOffset": 33,
            "content": "painter"
          },
          "type": "COMMON"
        }
      ],
      "metadata": {
        "mid": "/m/020bg",
        "wikipedia_url": "https://en.wikipedia.org/wiki/Caravaggio"
      },
      "name": "Michelangelo Caravaggio",
      "salience": 0.82904786,
      "type": "PERSON"
    },
    {
      "mentions": [
        {
          "text": {
            "beginOffset": 25,
            "content": "Italian"
          },
          "type": "PROPER"
        }
      ],
      "metadata": {},
      "name": "Italian",
      "salience": 0.13981608,
      "type": "LOCATION"
    },
    {
      "mentions": [
        {
          "text": {
            "beginOffset": 56,
            "content": "The Calling of Saint Matthew"
          },
          "type": "PROPER"
        }
      ],
      "metadata": {
        "mid": "/m/085_p7",
        "wikipedia_url": "https://en.wikipedia.org/wiki/The_Calling_of_Saint_Matthew"
      },
      "name": "The Calling of Saint Matthew",
      "salience": 0.031136045,
      "type": "WORK_OF_ART"
    }
  ],
  "language": "en"
}

βœ…  ALL DONE
student_01_b0f6bf06179f@cloudshell:~ (qwiklabs-gcp-01-f72baa0da255)$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment