-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infra for setting S3 bucket for storing datasets #147
Conversation
ba3a6b2
to
fe04349
Compare
@@ -1,24 +1,42 @@ | |||
import { debuglog } from 'node:util' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super nice. It prints debug traces scoped by a string. I saw Flydrive used it
import { Result } from '@latitude-data/core/lib/Result' | ||
import { env } from '@latitude-data/env' | ||
import { Disk, errors } from 'flydrive' | ||
import { FSDriver } from 'flydrive/drivers/fs' | ||
import { S3Driver } from 'flydrive/drivers/s3' | ||
import { WriteOptions } from 'flydrive/types' | ||
|
||
var debug_default = debuglog('flydrive:s3') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I tag these logs (temp hack to debug) as FlyDrive S3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var? are we back to 2006 javascript?
a8010db
to
b6e3ee9
Compare
await client.send(command) | ||
} catch (error) { | ||
debug_default('error pinging bucket %s', bucket) | ||
debug_default('error pinging bucket %s', error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we throw or do something with the exception here besides printing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method will be removed
4c5a0f4
to
8a9487d
Compare
983b1e2
to
c39b0cd
Compare
c39b0cd
to
81f46a5
Compare
81f46a5
to
facceeb
Compare
const adapter = new DrizzlePostgreSQLAdapter(database, sessions, users) | ||
const adapter = new DrizzlePostgreSQLAdapter( | ||
// @ts-expect-error - No idea why this is happening | ||
database, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea why started failing. Also in main
. I'll try after merge and see if I can remove it
What?
Set S3 bucket for storing datasets in latitude workspaces
TODO
Setup S3 Policy in bucketNot necessary. User fromAWS_ACCESS_KEY
already has these permissions.eu-central-1
regionpulumi up
to create the bucketNext PR