Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move PubSub to infrastructure as code #104

Merged
merged 6 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Import all pubsub topics and the API
  • Loading branch information
gchristov committed Jan 14, 2024
commit 4de92e89d0c02913923144fc5509fd36efcc560f
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The project can be run locally and on the cloud - in this case Google Cloud via
- `Firebase Admin`
- `Service Account User`
- `Service Usage Admin`
- `Pub/Sub Admin`
3. Export a JSON API key for your Service Account and call it `credentials-gcp-infra.json`.
4. [Signup and Install Pulumi](https://www.pulumi.com/docs/clouds/gcp/get-started/begin/#install-pulumi).
5. Create a Pulumi access token and login locally using `pulumi login`.
Expand Down
59 changes: 58 additions & 1 deletion pulumi/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,61 @@ resources:
spec:
routeName: service-app
options:
protect: true
protect: true
# Enables the PubSub API.
# pulumi import gcp:projects/service:Service pubsub-api PROJECT_ID/pubsub.googleapis.com
pubsub-api:
type: gcp:projects:Service
properties:
disableDependentServices: true
service: pubsub.googleapis.com
options:
protect: true
# Manages the preload search PubSub topic.
# pulumi import gcp:pubsub/topic:Topic pubsub-topic-preload-search TOPIC
pubsub-topic-preload-search:
type: gcp:pubsub:Topic
properties:
name: preload_search
options:
protect: true
# Manages the dev preload search PubSub topic.
# pulumi import gcp:pubsub/topic:Topic pubsub-topic-preload-search-dev TOPIC
pubsub-topic-preload-search-dev:
type: gcp:pubsub:Topic
properties:
name: preload_search_dev
options:
protect: true
# Manages the Slack interactivity PubSub topic.
# pulumi import gcp:pubsub/topic:Topic pubsub-topic-slack-interactivity TOPIC
pubsub-topic-slack-interactivity:
type: gcp:pubsub:Topic
properties:
name: slack_interactivity
options:
protect: true
# Manages the dev Slack interactivity PubSub topic.
# pulumi import gcp:pubsub/topic:Topic pubsub-topic-slack-interactivity-dev TOPIC
pubsub-topic-slack-interactivity-dev:
type: gcp:pubsub:Topic
properties:
name: slack_interactivity_dev
options:
protect: true
# Manages the Slack slash command PubSub topic.
# pulumi import gcp:pubsub/topic:Topic pubsub-topic-slack-slash-command TOPIC
pubsub-topic-slack-slash-command:
type: gcp:pubsub:Topic
properties:
name: slack_slash_command
options:
protect: true
# Manages the dev Slack slash command PubSub topic.
# pulumi import gcp:pubsub/topic:Topic pubsub-topic-slack-slash-command-dev TOPIC
pubsub-topic-slack-slash-command-dev:
type: gcp:pubsub:Topic
properties:
name: slack_slash_command_dev
options:
protect: true