More Info:

Ensure that PubSub Subscriptions have set DLQ topic.

Risk Level

Low

Address

Reliability, Operational Maturity

Compliance Standards

CBP

Triage and Remediation

Remediation

Sure, here are the steps to remediate the misconfiguration “PubSub Subscriptions Should Have Dead Letter Queue Topic Set For Failed Messages” in GCP using GCP console:

  1. Open the Google Cloud Console and select the project that contains the Pub/Sub subscription that needs to be remediated.

  2. In the left-hand navigation menu, select “Pub/Sub” and then select “Subscriptions”.

  3. Find the subscription that needs to be remediated and click on its name to open its details page.

  4. Scroll down to the “Dead-letter topic” section and click on the “Edit” button.

  5. In the “Edit dead-letter topic” dialog box, select the topic that will be used as the dead-letter queue for failed messages.

  6. Click on the “Save” button to confirm the changes.

  7. Verify that the dead-letter topic has been set correctly by checking the subscription details page.

Congratulations, you have successfully remediated the misconfiguration “PubSub Subscriptions Should Have Dead Letter Queue Topic Set For Failed Messages” in GCP using GCP console.

Additional Reading: