Site configuration

Know the detailed specifications mentioned in a site configuration file.

RudderStack creates a site configuration file (~/.pb/siteconfig.yaml) while creating a warehouse connection. It contains the following details including secrets (if any):

  • Warehouse connection details and its credentials.
  • Git repository connection credentials (if any).
success
If you have multiple PB projects and they use different warehouse connections, you can store the details for multiple connections in the same site configuration file.

A sample site configuration file containing multiple warehouse connection details is shown below:

connections:
  prod-db-profile:
    target: dev
    outputs:
      dev:
        type: snowflake
        account: inb828.us-west-3
        dbname: MAT_STORE
        schema: AB_SCHEMA
        user: rik
        warehouse: M_PROD_WAREHOUSE
        password: password
        role: ANALYTICS
  test-db-profile:
    target: test
    outputs:
      test:
        type: snowflake
        account: uk12.uk-1
        dbname: REVENUE_BILL
        schema: RS_PROFILES
        user: rudderstack_admin
        warehouse: TEST_WAREHOUSE
        password: password
        role: profiles_role
gitcreds: []
 - reporegex: "git@github.com:REPO_OWNER/*" # in case of ssh url
   key: |
       -----BEGIN OPENSSH PRIVATE KEY-----
       **********************************************************************
       **********************************************************************
       **********************************************************************
       **********************************************************************
       ****************************************************************
       -----END OPENSSH PRIVATE KEY-----       
  - reporegex: "https://github.com/rudderlabs/*" # https url
    basic_auth:
      username: oauth2
      password: ... # your personal access token with read permission
py_models:
    enabled: false
    python_path: ""
    credentials_presets: null
cache_dir: /Users/YOURNAME/.pb/WhtGitCache/
filepath: /Users/YOURNAME/.pb/siteconfig.yaml

Questions? Contact us by email or on Slack