Add S3 remote storage for snapshot save, load, and list#344
Open
anisaoshafi wants to merge 5 commits into
Open
Add S3 remote storage for snapshot save, load, and list#344anisaoshafi wants to merge 5 commits into
anisaoshafi wants to merge 5 commits into
Conversation
Lets users save, load, and list emulator snapshots in their own S3 bucket via an s3:// path, alongside the existing local-file and platform pod: targets. Credentials come from AWS_* env vars or --profile; they are never placed in the URL. The emulator performs the S3 transfer (no AWS SDK in the CLI) and lstk transparently registers a placeholder-templated remote so secrets stay ephemeral.
s3:// is now a supported load target, so it no longer hits the "not yet supported" path. Reject S3 in parseCloudOnly so remove/show (cloud-only, S3 deferred) still error clearly, and add a test that loading from S3 requires a pod name.
Before save/load/list against an S3 remote, lstk now checks the bucket exists (unsigned S3 HEAD: 404 => missing) and errors out rather than letting the emulator silently create it on a typo. Local-testing endpoints (IP / host.docker.internal) are skipped, and a check that cannot run degrades to a warning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds support for saving, loading, and listing snapshots in your own AWS S3 bucket. Before this, a snapshot could only go to a local file or a LocalStack platform pod (pod:).
How
Set your AWS credentials, then use an s3:// path:
Or use a named AWS profile instead of env vars:
Under the hood