AWS Emulator로 S3 파일 쓰기·읽기를 로컬에서 확인할 수 있는 범위

|

AWS Emulator로 S3 파일 쓰기·읽기를 로컬에서 확인할 수 있는 범위

Translation
Read in English

Scope of locally verifiable S3 file writes and reads with AWS Emulator

AWS Emulator handles SDK and CLI calls locally without a real AWS account, but any S3 operation whose API has not yet been implemented in the emulator returns 501 Not Implemented. Knowing in advance which operations can be verified locally and where the boundary lies prevents missteps when designing a CI pipeline.

Structure of the local environment provided by AWS Emulator

AWS Emulator accepts existing AWS SDK and CLI calls as-is and processes them in a local process. When the emulator starts, it listens for HTTPS requests on port 9297 at 127.0.0.1; setting the endpoint environment variable for the AWS SDK or CLI to point to this endpoint connects them without any code changes. Credentials are issued directly by the emulator, so real IAM keys are not required.

State is kept in memory only. When the emulator stops, all buckets and objects that were created are lost. When multiple emulator instances are running, each instance has its own port, keys, and in-memory state, so agents, test suites, and CI jobs cannot see each other’s resources. [1], [2]

Steps to reproduce S3 file writes and reads locally

The following reproduction steps are based on the startup path described in the official documentation. They are not based on direct measurement, so please read them as an expected flow.

1. Choose the installation path that matches your operating system. For Linux, starting with an RPM or Debian package is the officially recommended approach; for Windows and macOS, starting with the Docker image is recommended. For AI coding agent environments, there is also a path where you install the aws-emulator skill and then ask the agent to install, start, and connect it.
2. AWS CLI version 2.35.0 or later is required. When choosing the agent path, this version is a prerequisite.
3. Once the emulator is running, set the endpoint environment variable for the AWS SDK or CLI to `127.0.0.1:9297`.
4. Run the CLI commands you normally use, such as `aws s3api create-bucket`, exactly as before.
5. Upload a file with a PutObject call and read it back with a GetObject call.

The emulator is designed to return the same result as AWS for valid calls and the same error as AWS for invalid calls. [1], [2]

Expected observations: success paths and 501 paths

For S3 operations supported by the emulator, bucket creation, object upload, object retrieval, and object deletion are expected to return responses in the same format as real AWS responses. Response latency is specified in milliseconds, enabling repeated testing without network delays.

S3 APIs that have not yet been implemented return 501 Not Implemented. This response code is itself a value the emulator is designed to return, so receiving a 501 means the operation is outside the scope of the emulator. Which operations are supported must be checked in the official fidelity report, which is updated with each release. Because services and APIs are generated from the API models published by AWS, when AWS adds a new API it is reflected in the emulator incrementally. [1]

Scope and isolation limits of local state

S3 buckets and objects created in the emulator exist only in memory. Restarting the emulator resets all state. Accordingly, application logic that assumes persistent storage cannot be fully validated with the emulator alone.

When running multiple test jobs in parallel in a CI environment, each emulator instance uses a separate port and in-memory state, so there is no data collision between jobs. This isolation is explicitly guaranteed by the emulator’s design. However, because the emulator does not integrate with AWS regions, region-dependent features such as per-region bucket policy behavior and Cross-Region Replication cannot be verified in the emulator. [1], [2]

Test design decisions based on this scope

The area covered by the emulator includes the correctness of SDK call formats, error-handling branches, and unit tests that must be run repeatedly in the CI stage without an AWS account. On the other hand, operations marked as unsupported in the fidelity report—such as detailed bucket policy evaluation, server-side encryption (SSE) options, and specific stages of multipart uploads—must be validated separately in a real AWS environment.

In terms of cost, the emulator itself carries no additional service charges. AWS resource costs are incurred only when deploying to real AWS. The source code is published under CC0 1.0 Universal public domain, so there are no separate licensing restrictions on including it in internal CI images.

The practical criterion for making test design decisions is simple. If the S3 API you intend to call is listed in the fidelity report, pre-validate it with the emulator; if it is not on the list, the structure is clear: separate it into an integration test stage targeting a real AWS environment. [1]

Prerequisites to verify before getting started

The official documentation explicitly states that the ‘Setting up AWS Emulator’ procedure must be completed before starting. If you choose the agent path, AWS CLI 2.35.0 or later is mandatory. For the Linux package or Docker path, no separate version requirement is specified, but the correct order is to read the emulator setup documentation first and then prepare your environment.

If you need to determine the extent to which the emulator behaves identically to real AWS, the official fidelity report is the primary reference. Because the report is stated to be populated and validated with each version, opening the latest report at the time of use is the only way to confirm the currently supported scope. [1], [2]

Related reading

References

  1. AWS Emulator is now available for building and testing AWS applications locally
  2. Getting started with AWS Emulator

Reference verification standard

The official source was verified on November 20, 2026. The material may be revised after that date, so please check the original source for details.

日本語で読む

AWS EmulatorでS3ファイルの書き込み・読み込みをローカルで確認できる範囲

AWS Emulatorは実際のAWSアカウントなしにSDKおよびCLIの呼び出しをローカルで処理しますが、エミュレーターがまだ実装していないS3操作のAPIは501 Not Implementedを返します。どの範囲までローカルで確認できてどこで止まるかを事前に把握しておくと、CIパイプラインの設計で見当違いをせずに済みます。

AWS Emulatorが提供するローカル環境の構造

AWS Emulatorは既存のAWS SDKおよびCLIの呼び出しをそのまま受け取り、ローカルプロセスで処理します。エミュレーターを起動すると、127.0.0.1のポート9297でHTTPSリクエストを受け付けます。AWS SDKまたはCLIのエンドポイント環境変数をこのエンドポイントに向くよう設定すれば、コードを変更せずに接続できます。認証情報はエミュレーターが直接発行するため、実際のIAMキーは不要です。

状態はメモリ上にのみ保持されます。エミュレーターを停止すると、作成したバケットとオブジェクトはすべて失われます。エミュレーターを複数起動した場合、各インスタンスが独立したポート・キー・インメモリ状態を持つため、エージェント・テストスイート・CIジョブ同士がお互いのリソースを参照することはありません。 [1], [2]

S3ファイルの書き込み・読み込みをローカルで再現する手順

以下は公式ドキュメントが案内する起動パスをもとにした再現手順です。直接計測した結果ではないため、想定フローとして読んでください。

1. オペレーティングシステムに合ったインストールパスを選択します。Linuxの場合はRPMまたはDebianパッケージ、WindowsおよびmacOSの場合はDockerイメージで始めるのが公式推奨です。AIコーディングエージェント環境であれば、aws-emulatorスキルをインストールしてからエージェントにインストール・起動・接続を依頼するパスもあります。
2. AWS CLIバージョン2.35.0以上が必要です。エージェントパスを選ぶ場合、このバージョンが前提条件となります。
3. エミュレーターが起動したら、AWS SDKまたはCLIのエンドポイント環境変数を`127.0.0.1:9297`に設定します。
4. `aws s3api create-bucket`など普段使っているCLIコマンドをそのまま実行します。
5. PutObject呼び出しでファイルをアップロードし、GetObject呼び出しで読み返します。

エミュレーターは、有効な呼び出しに対してはAWSと同じ結果を、無効な呼び出しに対してはAWSと同じエラーを返すよう設計されています。 [1], [2]

想定される観察結果:成功パスと501パス

エミュレーターがサポートするS3操作では、バケット作成・オブジェクトアップロード・オブジェクト取得・オブジェクト削除などが実際のAWSレスポンスと同一の形式で返ってくることが想定されます。レスポンス速度はミリ秒単位と明記されており、ネットワーク遅延なしに繰り返しテストが可能です。

まだ実装されていないS3 APIは501 Not Implementedを返します。このレスポンスコード自体がエミュレーターが返すよう設計された値であるため、501が返ってきた場合はその操作がエミュレーターの対象外であることを意味します。どの操作がサポートされているかは公式フィデリティレポートで確認する必要があり、このレポートはリリースごとに更新されます。サービスとAPIはAWSが公開するAPIモデルから生成されるため、AWSが新しいAPIを追加するとエミュレーターにも順次反映されます。 [1]

ローカル状態の範囲と分離の限界

エミュレーターで作成したS3バケットとオブジェクトはメモリ上にのみ存在します。エミュレーターを再起動するとすべての状態がリセットされます。そのため、永続ストレージを前提とするアプリケーションロジックはエミュレーター単独では検証できません。

CI環境で複数のテストジョブを並列実行する場合、各エミュレーターインスタンスが別々のポートとインメモリ状態を使用するため、ジョブ間でデータの衝突は発生しません。この分離はエミュレーターの設計で明示的に保証されている部分です。ただし、AWSリージョンとは連携しないため、リージョンごとのバケットポリシーの動作やCross-Region Replicationといったリージョン依存機能はエミュレーターで確認することができません。 [1], [2]

この範囲を考慮したテスト設計の判断

エミュレーターがカバーする領域は、SDK呼び出し形式の正確性、エラー処理の分岐、そしてCIステージでアカウントなしに繰り返し実行する必要のあるユニットテストです。一方、バケットポリシーの詳細評価・サーバーサイド暗号化(SSE)オプション・マルチパートアップロードの特定ステップなど、フィデリティレポートで未サポートと表示されている操作は、実際のAWS環境で別途検証する必要があります。

コスト面では、エミュレーター自体には追加のサービス料金はかかりません。AWSリソースのコストは実際のAWSにデプロイしたときのみ発生します。ソースコードはCC0 1.0 Universalパブリックドメインとして公開されているため、社内CIイメージに含めるにあたって別途ライセンス上の制約はありません。

テスト設計を決める実用的な基準はシンプルです。呼び出したいS3 APIがフィデリティレポートに掲載されていればエミュレーターで先行検証し、一覧になければ実際のAWS環境を対象とした統合テストステージに分離するという構造が明快です。 [1]

開始前に確認すべき前提条件

公式ドキュメントは、開始前に「Setting up AWS Emulator」の手順を完了することを明記しています。エージェントパスを選択する場合、AWS CLI 2.35.0以上が必須です。LinuxパッケージやDockerパスではバージョン条件が別途明記されていませんが、エミュレーターのセットアップドキュメントを先に読んで環境を整えるのが正しい順序です。

エミュレーターが実際のAWSと同様に動作する範囲がどこまでかを判断する必要がある場合、公式フィデリティレポートが主要な参照先です。このレポートはバージョンごとに内容が整備・検証されると明記されているため、使用時点の最新レポートを直接確認することが、現在のサポート範囲を把握する唯一の方法です。 [1], [2]

あわせて読む

参考資料

  1. AWS Emulator is now available for building and testing AWS applications locally
  2. Getting started with AWS Emulator

資料確認基準

2026年11月20日に公式原文を確認しました。資料はその後修正される可能性があるため、詳細は原文をご確認ください。

AWS Emulator는 실제 AWS 계정 없이 SDK·CLI 호출을 로컬에서 처리해 주지만, S3 작업 중 에뮬레이터가 아직 구현하지 않은 API는 501 Not Implemented를 돌려줍니다. 어떤 범위까지 로컬에서 확인할 수 있고 어디서 멈추는지를 미리 파악하면 CI 파이프라인 설계를 헛짚지 않습니다.

AWS Emulator is now available for building and testing AWS applications locally 공식 문서 화면

AWS Emulator가 제공하는 로컬 환경의 구조

AWS Emulator는 기존 AWS SDK와 CLI 호출을 그대로 받아 로컬 프로세스에서 처리합니다. 에뮬레이터를 시작하면 127.0.0.1의 포트 9297에서 HTTPS 요청을 받으며, AWS SDK나 CLI가 이 엔드포인트를 바라보도록 환경 변수를 설정하면 코드 변경 없이 연결됩니다. 자격증명은 에뮬레이터가 직접 발급하므로 실제 IAM 키가 필요하지 않습니다.

상태는 메모리에만 보관됩니다. 에뮬레이터를 중지하면 생성했던 버킷과 객체가 모두 사라집니다. 에뮬레이터를 여러 개 띄우면 각 인스턴스가 독립된 포트·키·인메모리 상태를 가지므로, 에이전트·테스트 스위트·CI 작업끼리 서로의 리소스를 볼 수 없습니다. [1], [2]

S3 파일 쓰기·읽기를 로컬에서 재현하는 절차

아래는 공식 문서가 안내하는 시작 경로를 바탕으로 한 재현 절차입니다. 직접 측정한 결과가 아니므로 예상 흐름임을 전제로 읽으십시오.

1. 운영체제에 맞는 설치 경로를 선택합니다. Linux라면 RPM 또는 Debian 패키지, Windows·macOS라면 Docker 이미지로 시작하는 것이 공식 권장 방식입니다. AI 코딩 에이전트 환경이라면 aws-emulator 스킬을 설치한 뒤 에이전트에게 설치·시작·연결을 요청하는 경로도 있습니다.
2. AWS CLI 버전 2.35.0 이상이 필요합니다. 에이전트 경로를 선택할 때는 이 버전이 전제 조건입니다.
3. 에뮬레이터가 뜨면 AWS SDK 또는 CLI의 엔드포인트 환경 변수를 `127.0.0.1:9297`로 지정합니다.
4. `aws s3api create-bucket` 등 평소 쓰던 CLI 명령을 그대로 실행합니다.
5. PutObject 호출로 파일을 업로드하고 GetObject 호출로 다시 읽습니다.

에뮬레이터는 유효한 호출에 AWS와 동일한 결과를, 잘못된 호출에 AWS와 동일한 에러를 반환하도록 설계되어 있습니다. [1], [2]

광고

예상 관찰: 성공 경로와 501 경로

에뮬레이터가 지원하는 S3 작업에서는 버킷 생성, 객체 업로드, 객체 조회, 객체 삭제 등이 AWS 실제 응답과 동일한 형식으로 돌아올 것으로 예상됩니다. 응답 속도는 밀리초 단위로 명시되어 있어 네트워크 지연 없이 반복 테스트가 가능합니다.

아직 구현되지 않은 S3 API는 501 Not Implemented를 반환합니다. 이 응답 코드 자체가 에뮬레이터가 반환하도록 설계한 값이므로, 501이 나오면 해당 작업은 에뮬레이터 범위 밖임을 의미합니다. 어떤 작업이 지원되는지는 공식 피델리티 리포트를 확인해야 하며, 이 리포트는 릴리스마다 갱신됩니다. 서비스와 API는 AWS가 공개하는 API 모델에서 생성되므로 AWS가 새 API를 추가하면 에뮬레이터에도 순차적으로 반영됩니다. [1]

로컬 상태의 범위와 격리 한계

에뮬레이터에서 생성한 S3 버킷과 객체는 메모리에만 존재합니다. 에뮬레이터를 재시작하면 모든 상태가 초기화됩니다. 따라서 영속 스토리지를 전제로 하는 애플리케이션 로직은 에뮬레이터 단독으로 검증할 수 없습니다.

CI 환경에서 여러 테스트 작업을 병렬로 돌릴 때는 각 에뮬레이터 인스턴스가 별도 포트와 인메모리 상태를 사용하기 때문에 작업 간 데이터 충돌이 없습니다. 이 격리는 에뮬레이터 설계에서 명시적으로 보장하는 부분입니다. 단, AWS 리전과 연동하지 않으므로 리전별 버킷 정책 동작이나 Cross-Region Replication 같은 리전 의존 기능은 에뮬레이터에서 확인할 수 없습니다. [1], [2]

이 범위를 감안한 테스트 설계 판단

에뮬레이터가 커버하는 영역은 SDK 호출 형식의 정확성, 에러 처리 분기, 그리고 CI 단계에서 계정 없이 반복 실행해야 하는 단위 테스트입니다. 반면 버킷 정책 세부 평가, 서버 사이드 암호화(SSE) 옵션, 멀티파트 업로드의 특정 단계처럼 피델리티 리포트에서 미지원으로 표시된 작업은 실제 AWS 환경에서 별도로 검증해야 합니다.

비용 측면에서 에뮬레이터 자체에는 추가 서비스 요금이 없습니다. AWS 리소스 비용은 실제 AWS에 배포할 때만 발생합니다. 소스 코드는 CC0 1.0 Universal 공개 도메인으로 공개되어 있어 내부 CI 이미지에 포함하는 데 별도 라이선스 제약이 없습니다.

테스트 설계를 결정하는 실용적 기준은 단순합니다. 호출하려는 S3 API가 피델리티 리포트에 있으면 에뮬레이터로 선처리하고, 목록에 없으면 실제 AWS 환경을 대상으로 한 통합 테스트 단계로 분리하는 구조가 명확합니다. [1]

시작하기 전 확인할 전제 조건

공식 문서는 시작 전 'Setting up AWS Emulator' 절차를 완료할 것을 명시합니다. 에이전트 경로를 선택하면 AWS CLI 2.35.0 이상이 필수입니다. Linux 패키지나 Docker 경로에서는 버전 조건이 별도로 명시되어 있지 않지만, 에뮬레이터 설정 문서를 먼저 읽고 환경을 준비하는 것이 순서입니다.

에뮬레이터가 실제 AWS와 동일하게 동작하는 범위가 어디까지인지 판단이 필요한 경우, 공식 피델리티 리포트가 주 참조점입니다. 이 리포트는 버전마다 채워지고 검증된다고 명시되어 있으므로, 사용 시점의 최신 보고서를 직접 열어보는 것이 현재 지원 범위를 확인하는 유일한 방법입니다. [1], [2]

함께 읽기

참고한 자료

  1. AWS Emulator is now available for building and testing AWS applications locally
  2. Getting started with AWS Emulator

자료 확인 기준

2026년 11월 20일에 공식 원문을 확인했습니다. 자료는 이후 수정될 수 있으므로 세부 내용은 원문을 확인해 주세요.


cms world에서 더 알아보기

구독을 신청하면 최신 게시물을 이메일로 받아볼 수 있습니다.

답글 남기기