DEV Community

Sandeep
Sandeep

Posted on • Edited on

Perform Foundational Infrastructure Tasks in Google Cloud: Challenge Lab

The challenge contains 4 required tasks

Image description

  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

Top comments (0)