-
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
feat: Add private bucket option #58
Conversation
…ublicly accessible.
…d files into this folder). Moving methods to generate name in helper files. Prettier also applied some changes here and there.
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
==========================================
- Coverage 85.86% 83.14% -2.72%
==========================================
Files 12 13 +1
Lines 375 451 +76
Branches 78 85 +7
==========================================
+ Hits 322 375 +53
- Misses 53 76 +23 ☔ View full report in Codecov by Sentry. |
src/cloudfront/origin-access.ts
Outdated
if (isOACAlreadyAssociated) { | ||
return true; | ||
} |
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.
It looks like you could directly return isOACAlreadyAssociated
src/cloudfront/origin-access.ts
Outdated
if (isS3WebsiteAlreadyAssociated) { | ||
return true; | ||
} | ||
} | ||
return false; |
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.
Same here and you wouldn't need to do the late return
src/s3.ts
Outdated
@@ -95,6 +95,20 @@ export const tagBucket = async (bucketName: string) => { | |||
.promise(); | |||
}; | |||
|
|||
export const removeBucketWebsite = (bucketName: string) => { | |||
logger.info( | |||
`[S3] 🔏 Ensure bucket "${bucketName}" is not a static website hoisting` |
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.
hoisting or hosting?
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.
hosting of course
51d7529
to
f482763
Compare
cf5a3f8
to
f87f8a8
Compare
…s Control that will be fetched or created for the occasion. The distribution can be updated in both way, either by adding an OAC or on the contrary removing an OAC and add an s3-website-hoisting url.
…bucket policy with an OAC
f87f8a8
to
e591dc5
Compare
🎉 This PR is included in version 3.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.