Skip to main content Link Search Menu Expand Document (external link)

Google Cloud Storage Listener

Overview

The Google Cloud Storage Listener monitors Google Storage buckets for files and will execute a pre-defined Job Configuration (config-id) when triggered.

Add Blob Storage Permissions

For more information on how to create/obtain this key, see https://cloud.google.com/storage/docs/reference/libraries#setting_up_authentication

application.properties (ProgramDataDirectory)/Actian/FileFolderListener/conf/application.properties

Example:

# GCP Storage Connection Info (key file)
gcp.storage.service-account-key=C:/ProgramData/AccessKeys/gcp-account-name-1-935e6EXAMPLE.json 

Listener Configuration

Note that the File Folder Listener Service must be restarted for any configuration changes to take effect. Make sure you have already completed: File Folder Listener Authorization

listeners.yml (ProgramDataDirectory)/Actian/FileFolderListener/conf/listeners.yml

NOTE: indentation is critical for YAML syntax!

Example:

listeners:      
  - id: gcp-bucket-listener-accounts
    config-id: 90378
    listener-type: gcp
    active: true
    source-bucket-name: listener-bucket-us-east1-accounts
    source-bucket-region: us-east1
    include-pattern: ^Accounts.*
    filename-override: Accounts.txt
  - id: gcp-bucket-listener-contacts
    config-id: 90379
    listener-type: gcp
    active: true
    source-bucket-name: listener-bucket-us-east1-contacts
    source-bucket-region: us-east1
    include-pattern: ^Contacts.*
    filename-override: Contacts.txt

Properties

PropertyDefaultDescription
id A unique identifier for the listener.
listener-type Available listener types: local, aws, gcp, azure.
config-id The Job Configuration id to run in Integration Manager.
activetrueWhether or not this listener is active.
source-bucket-name The GCP bucket name to monitor for new files.
source-bucket-region Region of the GCP bucket (Note that GCP region codes are slightly different from AWS S3).
include-pattern Includes files if the file name matches the regular expression pattern you specify. See Cheatsheet, RegexPal
source-file-prefix IGNORED. NOT SUPPORTED FOR THIS LISTENER.
filename-override This value will override the filename passed to Integration Manager, regardless of the original source file name. The original source file name will always be used for backup and error files.