Skip to content

Commit

Permalink
fix: s3 backup view
Browse files Browse the repository at this point in the history
  • Loading branch information
vklimontovich committed Jan 6, 2024
1 parent 17b78fa commit afa15a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webapps/ee-api/scripts/sql/backup-connections.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ select ws.id || '_backup' as "id",
'frequency', 60,
'batchSize', 1000000,
'mode', 'batch'),
'credentials', json_build_object('region', '${S3_REGION}',
'accessKeyId', '${S3_ACCESS_KEY_ID}',
'secretAccessKey', '${S3_SECRET_ACCESS_KEY}',
'credentials', json_build_object('region', (select s3region from newjitsuee.tmp_s3_credentials),
'accessKeyId', (select "s3accessKey" from newjitsuee.tmp_s3_credentials),
'secretAccessKey', (select "s3accessKey" from newjitsuee.tmp_s3_credentials),
'bucket', ws.id || '.data.use.jitsu.com',
'compression', 'gzip',
'format', 'ndjson',
'folder', '[DATE]'),
'credentialsHash', ''
) as "enrichedConnection"
from "Workspace" ws
from newjitsu."Workspace" ws
where deleted = false
and not 'nobackup' = ANY ("featuresEnabled")
and (select count(*) from "ConfigurationObjectLink" where "workspaceId" = ws.id and type='push' and deleted = false) > 0
and (select count(*) from newjitsu."ConfigurationObjectLink" where "workspaceId" = ws.id and type='push' and deleted = false) > 0

2 comments on commit afa15a7

@vercel
Copy link

@vercel vercel bot commented on afa15a7 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

new-jitsu-ee-api – ./webapps/ee-api

new-jitsu-ee-api-git-newjitsu-jitsu.vercel.app
onetag-ee-api.vercel.app
new-jitsu-ee-api-jitsu.vercel.app
ee.jitsu.dev

@vercel
Copy link

@vercel vercel bot commented on afa15a7 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

new-jitsu – ./webapps/console

new-jitsu-git-newjitsu-jitsu.vercel.app
use.jitsu.com
new-jitsu-jitsu.vercel.app

Please sign in to comment.