Skip to content

Mock sample: AWS S3 API #60

@waldekmastykarz

Description

@waldekmastykarz

Description

Create a mock sample for AWS S3 API.

Update: LocalStack (64k+ GitHub stars) is the de facto standard for mocking AWS services locally. It provides a fully functional local AWS cloud stack including S3. Consider using LocalStack instead.

Alternative: LocalStack

LocalStack is a cloud service emulator that runs in a single container on your laptop or in your CI environment. With LocalStack, you can run your AWS applications or Lambdas entirely on your local machine without connecting to a remote cloud provider.

Features

  • Full S3 API emulation
  • Supports most AWS services (Lambda, DynamoDB, SQS, SNS, and more)
  • Docker-based, easy to run locally or in CI/CD
  • Active community with 64k+ GitHub stars

Quick Start

# Install
brew install localstack/tap/localstack-cli

# Start
localstack start -d

# Use with AWS CLI
awslocal s3 mb s3://my-bucket
awslocal s3 cp myfile.txt s3://my-bucket

See: https://github.com/localstack/localstack


Original request (for reference)

Why

  • Ubiquitous cloud storage API
  • Many devs use AWS SDKs that can be configured for local endpoints
  • Enables offline development without AWS credentials
  • Cost savings during development/testing

Suggested endpoints to mock

  • Object operations (GET, PUT, DELETE)
  • Bucket listing
  • Presigned URL generation
  • Multipart upload
  • Error responses (NoSuchKey, AccessDenied, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions