Thanks to visit codestin.com
Credit goes to github.com

Skip to content

implement S3 native Website #8864

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

Merged
merged 1 commit into from
Aug 15, 2023
Merged

implement S3 native Website #8864

merged 1 commit into from
Aug 15, 2023

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Aug 8, 2023

Motivation

This PR migrate the current S3 Website router to be compatible with both providers, as well as implementing the BucketWebsite API.

Changes

The current S3 website was very tightly coupled with the moto backend, making it impossible to use with the new provider. We discussed it quickly with @alexrashed, and the internal boto client makes much more sense to use here as it totally abstracts away any difference there might be in the providers. Currently the implementation is the same as the previous one.

I've also changed some operations to be multi-account aware, so that they're able to access any buckets in any account when using the boto client. \cc @viren-nadkarni

@bentsku bentsku added aws:s3 Amazon Simple Storage Service semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases labels Aug 8, 2023
@bentsku bentsku self-assigned this Aug 8, 2023
@bentsku bentsku force-pushed the s3-native-lifecycle branch from 7f2d20f to 01e4f7a Compare August 8, 2023 22:44
@bentsku bentsku force-pushed the s3-native-website branch from 81ad9d0 to 6305500 Compare August 8, 2023 22:51
@bentsku bentsku force-pushed the s3-native-lifecycle branch from 01e4f7a to 33258ba Compare August 10, 2023 10:30
@bentsku bentsku force-pushed the s3-native-website branch from 6305500 to ad12ee0 Compare August 10, 2023 10:32
@coveralls
Copy link

coveralls commented Aug 10, 2023

Coverage Status

coverage: 81.354% (-0.03%) from 81.383% when pulling 144e2c5 on s3-native-website into ae49c00 on s3-native-lifecycle.

@bentsku bentsku marked this pull request as ready for review August 10, 2023 11:58
@bentsku bentsku requested a review from macnev2013 as a code owner August 10, 2023 11:58
@bentsku bentsku force-pushed the s3-native-website branch from ad12ee0 to 649dd3d Compare August 10, 2023 22:21
@bentsku bentsku requested a review from thrau as a code owner August 10, 2023 22:21
@bentsku bentsku force-pushed the s3-native-lifecycle branch from 33258ba to ce03168 Compare August 10, 2023 22:21
@bentsku bentsku force-pushed the s3-native-website branch from 649dd3d to bf92734 Compare August 10, 2023 22:26
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

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

Looks great! Love the handler approach using the S3 client! 💯

@bentsku bentsku force-pushed the s3-native-lifecycle branch from b9f8ef0 to 5024e6d Compare August 13, 2023 00:49
@bentsku bentsku force-pushed the s3-native-website branch from bf92734 to c034bae Compare August 13, 2023 00:50
@bentsku bentsku force-pushed the s3-native-lifecycle branch from 5024e6d to ae49c00 Compare August 14, 2023 20:01
@bentsku bentsku force-pushed the s3-native-website branch from c034bae to 144e2c5 Compare August 14, 2023 20:02
@bentsku bentsku force-pushed the s3-native-lifecycle branch from ae49c00 to 65ec6b0 Compare August 14, 2023 22:25
Base automatically changed from s3-native-lifecycle to master August 14, 2023 23:52
@bentsku bentsku force-pushed the s3-native-website branch from 144e2c5 to a787d67 Compare August 14, 2023 23:57
@bentsku bentsku force-pushed the s3-native-website branch from a787d67 to 182905f Compare August 15, 2023 00:04
@github-actions
Copy link

LocalStack Community integration with Pro

       2 files         2 suites   1h 18m 36s ⏱️
2 060 tests 1 656 ✔️ 404 💤 0
2 061 runs  1 656 ✔️ 405 💤 0

Results for commit 182905f.

@bentsku bentsku merged commit e0a3816 into master Aug 15, 2023
@bentsku bentsku deleted the s3-native-website branch August 15, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:s3 Amazon Simple Storage Service semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants