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

Skip to content

Add S3 deprecation warnings #9204

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
Sep 22, 2023
Merged

Add S3 deprecation warnings #9204

merged 1 commit into from
Sep 22, 2023

Conversation

joe4dev
Copy link
Member

@joe4dev joe4dev commented Sep 21, 2023

Motivation

  • With 1.?, the new S3 v2 provider became available as opt-in.
  • With 1.4, the legacy v1 provider was deprecated and we encouraged users to opt-in to our new S3 v2 provider.
  • With 2.0, the current S3 provider v2 became the default implementation Switch to new Lambda provider implementation #6724.
  • With 2.3, we add removal warnings in the old v1 provider (this PR) and the new native S3 provider v3 becomes available make new s3 v3 provider default #8785.
  • With 3.0 the old (v1) provider will be removed completely and the new native S3 provider v3 becomes the default.
  • With 3.1/3.2? (TBD), the current S3 provider v2 provider will be deprecated
  • With 4.0 the current S3 provider v2 will be removed completely.

Changes

Add a log warning when the legacy S3 v1 provider is used. Only logged during initialization (on_after_init) for people using the legacy S3 service.

⚠️ This PR needs to be merged before the ext PR: https://github.com/localstack/localstack-ext/pull/2115

Discussion

Consistency: Trying to align the language for the deprecations and removals of s3, lambda, stepfunctions /cc

@joe4dev joe4dev added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Sep 21, 2023
@joe4dev joe4dev added this to the 2.3 milestone Sep 21, 2023
@joe4dev joe4dev requested a review from bentsku as a code owner September 21, 2023 19:02
@joe4dev joe4dev requested a review from macnev2013 as a code owner September 21, 2023 19:02
@coveralls
Copy link

Coverage Status

coverage: 82.99% (+0.05%) from 82.94% when pulling e9ae2f6 on s3-deprecation-warnings into 623e383 on master.

@github-actions
Copy link

LocalStack Community integration with Pro

       2 files  ±0         2 suites  ±0   1h 17m 32s ⏱️ +47s
2 217 tests ±0  1 721 ✔️ ±0  496 💤 ±0  0 ±0 
2 218 runs  ±0  1 721 ✔️ ±0  497 💤 ±0  0 ±0 

Results for commit e9ae2f6. ± Comparison against base commit 623e383.

Copy link
Contributor

@bentsku bentsku left a comment

Choose a reason for hiding this comment

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

Awesome, thank you so much for doing this! I think you resumed things perfectly, I don't know when we will start deprecating v2, maybe around 3.1/3.2? I don't think we will deprecate it straight away, it's exactly as you wrote it. Perfect!

Also, nice use of the LifecycleHook! I didn't even know you could use it with the old ProxyListeners.

@joe4dev joe4dev self-assigned this Sep 22, 2023
@joe4dev joe4dev merged commit 0c93517 into master Sep 22, 2023
@joe4dev joe4dev deleted the s3-deprecation-warnings branch September 22, 2023 22:11
Morijarti pushed a commit that referenced this pull request Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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