Solution To Perform Foundational Infrastructure Tasks in Google Cloud : Challenge Lab

Solution To Perform Foundational Infrastructure Tasks in Google Cloud : Challenge Lab

Disclaimer: Please this blog was meant for those who have gotten stuck whilst taking the third challenge lab on the Qwiklabs Platform. You can also read this before you take the lab too, no problem, but please do keep in mind you’ve to understand all the concepts as you go through the lab.

Let’s set the ball rolling

  1. Create a bucket.
  2. Create a Pub/Sub topic with given name.
  3. Create the Cloud Function.
  4. Remove the previous cloud engineer.

1: Create a bucket

  1. Navigation menu > Cloud Storage > Browser > Create Bucket
  2. Name your bucket > Enter GCP Project ID > Continue
  3. Choose where to store your data > Region: us-east1 > Continue
  4. Use default for the remaining
  5. Create

2: Create a Pub/Sub topic

  1. Navigation menu > Pub/Sub > Topics
  2. Create Topic > Name: topic id > Create Topic

3: Create the thumbnail Cloud Function

  1. Navigation menu > Cloud Functions > Create Function
  2. Use the following config:
  3. Name: CFtopic id Region: us-east1 Trigger: Cloud Storage Event type: Finalize/Create Bucket: BROWSE > Select the qwiklabs bucket
  4. Remaining default > Next
  5. Runtime: Node.js 10 Entry point: thumbnail
  6. Add the code appropiately
  7. Download the image from URL
  8. Navigation menu > Cloud Storage > Browser > Select your bucket > Upload files
  9. Refresh bucket

4: Remove the previous cloud engineer

  1. Navigation menu > IAM & Admin > IAM
  2. Search for the “Username 2” > Edit > Delete Role

Leave a Reply

Your email address will not be published. Required fields are marked *