https://www.skills.google/games/7174/labs/44444
https://github.com/nov05/gcp-skills-boost/commit/ed5437df2d384f3707cc8cf0705aabfe5c64baa7
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)$
β Test result: the new script passed all check.
nov05/gcp-skills-boost@cbd1391