Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (21 loc) · 739 Bytes

google_pubsub_topic.md

File metadata and controls

31 lines (21 loc) · 739 Bytes
title platform
About the google_pubsub_topic resource
gcp

Syntax

A google_pubsub_topic is used to test a Google Topic resource

Examples

describe google_pubsub_topic(project: 'chef-gcp-inspec', name: 'inspec-gcp-topic') do
  it { should exist }
end

describe google_pubsub_topic(project: 'chef-gcp-inspec', name: 'nonexistent') do
  it { should_not exist }
end

Properties

Properties that can be accessed from the google_pubsub_topic resource:

  • name: Name of the topic.

  • labels: A set of key/value label pairs to assign to this Topic.

GCP Permissions

Ensure the Cloud Pub/Sub API is enabled for the current project.