-
Notifications
You must be signed in to change notification settings - Fork 4
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
(fix, fdr): create a public S3 bucket so that we can share images without public presigned urls #876
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
}, | ||
versioned: true, | ||
}); | ||
publicBucket.grantPublicAccess(); |
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.
We create a new public S3 bucket here
bucketName: getEnvironmentVariableOrThrow(PRIVATE_S3_BUCKET_NAME_ENV_VAR), | ||
bucketRegion: getEnvironmentVariableOrThrow(PRIVATE_S3_BUCKET_REGION_ENV_VAR), | ||
urlOverride: process.env.PRIVATE_S3_URL_OVERRIDE_ENV_VAR, | ||
}, |
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.
the public and private s3 bucket URL information is parsed here
Short description of the changes made
This PR creates a public S3 bucket so that we can start storing assets for public docs in this S3 bucket.
What was the motivation & context behind this PR?
How has this PR been tested?
[pending]