DEV Community

Sandeep
Sandeep

Posted on • Edited on

1

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay