-
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
Make Cloudfront private in CDK code, add key-pair for auth #2060
Conversation
…to dd/write-to-s3
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
.github/workflows/deploy-fdr-dev.yml
Outdated
@@ -4,6 +4,7 @@ on: | |||
push: | |||
branches: | |||
- main | |||
- dd/write-to-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.
lets remove
@@ -146,7 +147,7 @@ export class S3ServiceImpl implements S3Service { | |||
}): Promise<PutObjectCommandOutput> { | |||
const command = new PutObjectCommand({ | |||
Bucket: this.config.dbDocsDefinitionS3.bucketName, | |||
Key: `${domain}.json`, | |||
Key: `${domain}/${docsDefinitionVersion()}.json`, |
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.
should be entirely replaced with getS3KeyForV1DocsDefinition
@@ -10,7 +11,7 @@ export async function loadDocsDefinitionFromS3({ | |||
}): Promise<FdrAPI.docs.v2.read.LoadDocsForUrlResponse | undefined> { | |||
try { | |||
const cleanDomain = domain.replace(/^https?:\/\//, ""); | |||
const dbDocsDefUrl = `${docsDefinitionUrl}/${cleanDomain}.json`; | |||
const dbDocsDefUrl = `${docsDefinitionUrl}/${cleanDomain}/${docsDefinitionVersion()}.json`; |
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.
${docsDefinitionUrl}/${getS3KeyForV1DocsDefinition(domain)}
No description provided.