More Info:

Ensure that PubSub Subscriptions are not detached from topics

Risk Level

Low

Address

Operational Excellence

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the PubSub subscription detachment from topics misconfiguration in GCP using GCP console, follow the below steps:

  1. Open the Google Cloud Console and select your project.

  2. Navigate to the Pub/Sub section from the left-hand side menu.

  3. Select the Subscription tab from the top menu.

  4. Identify the detached subscription(s) and select the checkbox beside them.

  5. Click on the Delete button above the list of subscriptions.

  6. Confirm the deletion by clicking on the Delete button in the confirmation dialog box.

  7. Next, navigate to the Topics tab from the top menu.

  8. Select the topic that the subscription was previously attached to.

  9. Click on the Add Subscription button above the list of subscriptions.

  10. In the Add Subscription dialog box, select the subscription(s) that you want to attach to the topic.

  11. Click on the Create button to attach the subscription(s) to the topic.

  12. Verify that the subscription(s) are now attached to the topic.

By following these steps, you can remediate the PubSub subscription detachment from topics misconfiguration in GCP using GCP console.

Additional Reading: