Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1010 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 1010 Bytes

Setup GCP Pubsub for Async Rotator

This folder contains terraform code to setup everything needed for Async rotator to connect to a valid PubSub subscription.

It is intended to be used together with kind for a local setup, and not production usage, as it leverage GCP Service Account Keys.

In order to try it:

  1. Install ESO And Async Rotator:
helm install external-secrets external-secrets/external-secrets

## Get installation link from https://app.externalsecrets.com/<your-org-name>/rotators
curl \
https://api.externalsecrets.com/public/rotators/$rotator_id/manifest/latest\
\?token\=$token
  1. Create a test.tfvars file:
project_id = "your-test-project"
topic_name = "test-pubsub-rotator"
subscription_name = "rotator-subscription"
sink_name = "test-rotator-sink"
  1. Init terraform:
terraform init -upgrade
  1. Login to Gcloud:
gcloud auth application-default login
  1. Plan/Apply:
terraform plan -var-file=test.tfvars
terraform apply -var-file=test.tfvars