PubNub
PubNub is a web-based infrastructure-as-a-service (IaaS) communication Platform. It supports use cases including chat, virtual events, collaboration, alerting, IoT device control, real-time updates, and push notifications to help companies build engaging, scalable, and reliable apps.
In order to integrate PubNub with Relyance AI you will need a Publish Key, Subscribe Key, Secret Key, and UUID.
In PubNub:
- Login to your PubNub account.
- Go to the Admin Portal at PubNub Admin Portal
- Click on Apps in the left-side navigation menu.
- Click on the + CREATE NEW APP button on the right-side of the Apps page.


Provide a name in the dialog box that pops up and click CREATE.
Click on the new app card.
Click on the new app card keyset on the resulting page.

- Copy the Publish Key, Subscribe Key, and Secret Key from this page.
- The UUID is a unique identifier for this App, you will need to provide a unique string of up to 64 characters to help PubNub identify the client that connects to the PubNub platform. You can create this yourself. See this document for more info: How do I set the UUID?
In the Relyance AI application:
- Login to your Relyance account.
- Navigate to the Settings Menu in the bottom left-hand side.
- Select Integrations.
- Click on the Vendor Integration tab.
- Find the PubNub integration card and click it to open its connections.
- Under Authentication Method, choose Custom.
- Paste the Publish Key, Subscribe Key, Secret Key, and UUID into their respective fields.

- Click Authenticate.
- At this point, you should see the following result on the Vendor Integrations page:

- Congratulations, you are now connected to PubNub.
Manage this integration with Terraform
Connections for this integration can be managed as code with the Relyance Terraform provider. Non-secret fields go in auth.params; secret fields go in auth.secrets_wo, which is write-only — never stored in Terraform state. Rotate secrets by bumping auth.secrets_wo_version.
resource "relyance_integration_connection" "pubnub" {
vendor = "pubnub"
name = "<your connection name>"
auth = {
method = "keyset"
params = {
uuid = "ade395ab-67eb-4df3-81b6-16b230803e10"
data_storage_location = "us"
}
# Secret fields are write-only: sent to Relyance, never stored in state.
secrets_wo = {
pubkey = var.pubnub_pubkey
subkey = var.pubnub_subkey
seckey = var.pubnub_seckey
}
secrets_wo_version = 1
}
scans = { "property-inspection" = { enabled = true } }
}