<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Miguel Angel Choque Garcia</title>
    <description>The latest articles on DEV Community by Miguel Angel Choque Garcia (@mickychog).</description>
    <link>https://dev.to/mickychog</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4197105%2F3ae59d55-ba05-41ed-a351-92b9de4cf296.jpg</url>
      <title>DEV Community: Miguel Angel Choque Garcia</title>
      <link>https://dev.to/mickychog</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mickychog"/>
    <language>en</language>
    <item>
      <title>I Tried the New AWS Emulator with NestJS: Local Telemetry with S3, DynamoDB and SQS</title>
      <dc:creator>Miguel Angel Choque Garcia</dc:creator>
      <pubDate>Sat, 21 Nov 2026 19:38:46 +0000</pubDate>
      <link>https://dev.to/mickychog/i-tried-the-new-aws-emulator-with-nestjs-local-telemetry-with-s3-dynamodb-and-sqs-58f6</link>
      <guid>https://dev.to/mickychog/i-tried-the-new-aws-emulator-with-nestjs-local-telemetry-with-s3-dynamodb-and-sqs-58f6</guid>
      <description>&lt;p&gt;AWS announced &lt;strong&gt;AWS Emulator on November 11, 2026&lt;/strong&gt;: a local endpoint that lets your AWS CLI and SDK clients talk to emulated AWS APIs. I tried it with a small backend workflow: receive telemetry, store it, and publish an alert when CPU usage is high. &lt;a href="https://aws.amazon.com/blogs/aws/test-your-applications-against-aws-locally-with-aws-emulator/" rel="noopener noreferrer"&gt;Official AWS announcement&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The result is a &lt;strong&gt;NestJS + TypeScript telemetry API&lt;/strong&gt; using the AWS SDK for JavaScript v3, with emulated S3, DynamoDB, and SQS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source code, setup scripts, tests, and all screenshots:&lt;/strong&gt; &lt;a href="https://github.com/mickychog/aws-emulator-telemetry-lab" rel="noopener noreferrer"&gt;aws-emulator-telemetry-lab on GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The repository includes both an &lt;a href="https://github.com/mickychog/aws-emulator-telemetry-lab#readme" rel="noopener noreferrer"&gt;English guide&lt;/a&gt; and a &lt;a href="https://github.com/mickychog/aws-emulator-telemetry-lab/blob/main/docs/README.es.md" rel="noopener noreferrer"&gt;Spanish guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the API does
&lt;/h2&gt;

&lt;p&gt;A client submits a measurement to &lt;code&gt;POST /telemetry&lt;/code&gt;. After validation, the service performs these operations in order:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Destination&lt;/th&gt;
&lt;th&gt;Resource&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;DynamoDB&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AgentStatus&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Replace the latest status for an agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;S3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;telemetry-raw-logs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Save a JSON report for each measurement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SQS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;high-cpu-alerts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Send an alert when &lt;code&gt;cpuUsage &amp;gt;= 80&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The table uses a string partition key named &lt;code&gt;agentId&lt;/code&gt;. S3 objects use &lt;code&gt;logs/&amp;lt;agentId&amp;gt;/&amp;lt;uuid&amp;gt;.json&lt;/code&gt;, so history and current state have different storage models.&lt;/p&gt;

&lt;p&gt;This repository does not collect system metrics automatically. The examples use &lt;code&gt;curl&lt;/code&gt; as the telemetry sender, and there is no SQS consumer yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The environment I verified
&lt;/h2&gt;

&lt;p&gt;The lab was verified on &lt;strong&gt;November 21, 2026&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Version&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OS&lt;/td&gt;
&lt;td&gt;Linux Mint 22.3, x86_64&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node.js / npm&lt;/td&gt;
&lt;td&gt;24.22.1 / 11.19.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS CLI&lt;/td&gt;
&lt;td&gt;2.36.29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Emulator&lt;/td&gt;
&lt;td&gt;1.0.551&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript&lt;/td&gt;
&lt;td&gt;6.0.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vitest&lt;/td&gt;
&lt;td&gt;4.1.12&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are recorded lab versions, rather than a claim about the latest releases. The &lt;a href="https://github.com/mickychog/aws-emulator-telemetry-lab/blob/beaa558f64a27a0a27a588362d72386fb49e3546/docs/evidence/environment.txt" rel="noopener noreferrer"&gt;environment record&lt;/a&gt; contains the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Start a local emulator
&lt;/h2&gt;

&lt;p&gt;Install Node.js, npm, AWS CLI v2, and AWS Emulator first. For Linux Mint, follow AWS's &lt;a href="https://docs.aws.amazon.com/emulator/latest/userguide/getting-started-linux.html" rel="noopener noreferrer"&gt;Debian package installation and signature verification instructions&lt;/a&gt;. The repository's guide includes a package URL pinned to the tested emulator build.&lt;/p&gt;

&lt;p&gt;In terminal A:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws-emulator --version
aws-emulator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep it running. The lab uses the HTTPS endpoint &lt;code&gt;https://127.0.0.1:9297&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Finmywru9ankon8p0mbz6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Finmywru9ankon8p0mbz6.png" alt="AWS Emulator running locally with its HTTPS endpoint and generated configuration paths" width="799" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Configure a shell for local AWS calls
&lt;/h2&gt;

&lt;p&gt;In terminal B, clone the repository once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/Proyectos
git clone https://github.com/mickychog/aws-emulator-telemetry-lab.git \
  ~/Proyectos/aws-emulator-telemetry-lab
&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Proyectos/aws-emulator-telemetry-lab
&lt;span class="nb"&gt;source&lt;/span&gt; scripts/use-emulator.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Skip cloning if you already have the project. Adjust the directory if you keep your projects elsewhere.&lt;/p&gt;

&lt;p&gt;The script points the CLI and SDK at the local endpoint, selects &lt;code&gt;us-east-1&lt;/code&gt;, and uses the emulator's generated credentials and certificate under &lt;code&gt;~/.aws/emulator/9297/&lt;/code&gt;. It also unsets inherited &lt;code&gt;AWS_ACCESS_KEY_ID&lt;/code&gt;, &lt;code&gt;AWS_SECRET_ACCESS_KEY&lt;/code&gt;, &lt;code&gt;AWS_SESSION_TOKEN&lt;/code&gt;, and &lt;code&gt;AWS_PROFILE&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use &lt;code&gt;source&lt;/code&gt; in every shell that runs the backend or AWS commands.&lt;/strong&gt; Running the script as a child process would not retain those exports in your current shell.&lt;/p&gt;

&lt;p&gt;Check the connection:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl --fail --silent --show-error \
  --cacert &lt;span class="s2"&gt;"$AWS_CA_BUNDLE"&lt;/span&gt; \
  https://127.0.0.1:9297/__admin/health
aws sts get-caller-identity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The health check should return &lt;code&gt;ok&lt;/code&gt;; the emulated account is &lt;strong&gt;&lt;code&gt;000000000000&lt;/code&gt;&lt;/strong&gt;. If you see another account, inspect your configuration before continuing. AWS documents the &lt;a href="https://docs.aws.amazon.com/emulator/latest/userguide/point-sdk-to-emulator.html" rel="noopener noreferrer"&gt;SDK endpoint and certificate settings&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Initialize the resources and start NestJS
&lt;/h2&gt;

&lt;p&gt;From the configured repository shell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bash scripts/init-aws.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script checks the endpoint and STS account before creating or reusing the named resources. It also waits for &lt;code&gt;AgentStatus&lt;/code&gt; to become available and checks its status and key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F14djjqpwrb1kdvqxk3tl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F14djjqpwrb1kdvqxk3tl.png" alt="The telemetry S3 bucket, DynamoDB table, and SQS queue in AWS Emulator" width="620" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then start the backend from its own directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; backend
npm ci
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; ! -f .env &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
  cp .env.example .env
&lt;span class="k"&gt;fi&lt;/span&gt;
npm run start:dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The local &lt;code&gt;.env&lt;/code&gt; contains:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;S3_BUCKET_NAME=telemetry-raw-logs
DYNAMODB_TABLE_NAME=AgentStatus
SQS_QUEUE_NAME=high-cpu-alerts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The API listens on &lt;strong&gt;&lt;code&gt;http://127.0.0.1:3000&lt;/code&gt;&lt;/strong&gt;. The current code explicitly binds that address and port; it does not read &lt;code&gt;PORT&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The API's HTTP listener is separate from the emulator's HTTPS endpoint. &lt;code&gt;AppService&lt;/code&gt; refuses startup unless &lt;code&gt;AWS_ENDPOINT_URL&lt;/code&gt; exactly matches &lt;code&gt;https://127.0.0.1:9297&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two SDK configuration choices matter here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;S3 uses &lt;code&gt;forcePathStyle: true&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;SQS uses &lt;code&gt;useQueueUrlAsEndpoint: false&lt;/code&gt;, retaining the configured local transport endpoint even when a returned queue URL looks like an AWS URL.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can inspect the complete implementation in &lt;a href="https://github.com/mickychog/aws-emulator-telemetry-lab/blob/beaa558f64a27a0a27a588362d72386fb49e3546/backend/src/app.service.ts" rel="noopener noreferrer"&gt;app.service.ts&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Send normal telemetry
&lt;/h2&gt;

&lt;p&gt;In terminal C:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -i -sS -X POST http://127.0.0.1:3000/telemetry \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "agentId": "node-01",
    "hostname": "linux-mint-lab",
    "cpuUsage": 35.5,
    "memoryUsage": 48.2
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The expected response is &lt;strong&gt;201 Created&lt;/strong&gt;, with &lt;code&gt;status: "processed"&lt;/code&gt; and &lt;code&gt;alertTriggered: false&lt;/code&gt;. It also includes a generated timestamp and S3 object key.&lt;/p&gt;

&lt;p&gt;To inspect the stored result, configure terminal C from the repository root:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Proyectos/aws-emulator-telemetry-lab
&lt;span class="nb"&gt;source&lt;/span&gt; scripts/use-emulator.sh
aws dynamodb get-item --table-name AgentStatus \
  --key &lt;span class="s1"&gt;'{"agentId":{"S":"node-01"}}'&lt;/span&gt;
aws s3 ls s3://telemetry-raw-logs/logs/node-01/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Trigger and inspect a high CPU alert
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -i -sS -X POST http://127.0.0.1:3000/telemetry \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "agentId": "node-02",
    "hostname": "server-test",
    "cpuUsage": 92.5,
    "memoryUsage": 76.3
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the recorded manual run, this returned &lt;code&gt;alertTriggered: true&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft05jldt662zje43asio6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft05jldt662zje43asio6.png" alt="Recorded response for CPU usage of 92.5 percent, with the alert flag enabled" width="655" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The threshold is &lt;strong&gt;80% inclusive&lt;/strong&gt;. Memory usage is stored but does not trigger an alert, and repeated high CPU requests produce repeated alerts.&lt;/p&gt;

&lt;p&gt;From a shell configured with &lt;code&gt;use-emulator.sh&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;QUEUE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;aws sqs get-queue-url \
  --queue-name high-cpu-alerts \
  --query QueueUrl --output text&lt;span class="o"&gt;)&lt;/span&gt;
aws sqs receive-message --endpoint-url &lt;span class="s2"&gt;"$AWS_ENDPOINT_URL"&lt;/span&gt; \
  --queue-url &lt;span class="s2"&gt;"$QUEUE_URL"&lt;/span&gt; \
  --max-number-of-messages 10 --wait-time-seconds 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcxki2z486vqr7lcswptk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcxki2z486vqr7lcswptk.png" alt="A HIGH_CPU_USAGE message received from the local high-cpu-alerts queue" width="800" height="190"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Receiving a message changes its visibility temporarily; it does not delete it. A visible-message count of zero after receiving does not establish that the message was deleted.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Reject invalid input
&lt;/h2&gt;

&lt;p&gt;Both usage fields must be JSON numbers between 0 and 100. &lt;code&gt;agentId&lt;/code&gt; and &lt;code&gt;hostname&lt;/code&gt; must be nonempty strings, and all four fields are required. The global &lt;code&gt;ValidationPipe&lt;/code&gt; also rejects extra fields.&lt;/p&gt;

&lt;p&gt;This request should return &lt;strong&gt;400 Bad Request&lt;/strong&gt; before calling the service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -i -sS -X POST http://127.0.0.1:3000/telemetry \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "agentId": "node-03",
    "hostname": "invalid-test",
    "cpuUsage": 150,
    "memoryUsage": 40
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Know exactly what your tests prove
&lt;/h2&gt;

&lt;p&gt;From &lt;code&gt;backend/&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx vitest run --config vitest.config.ts
npx vitest run --config vitest.config.e2e.ts
npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verified results:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Unit tests&lt;/td&gt;
&lt;td&gt;2 passed&lt;/td&gt;
&lt;td&gt;Controller delegation and returned result/alert flag&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTP E2E tests&lt;/td&gt;
&lt;td&gt;3 passed&lt;/td&gt;
&lt;td&gt;Valid POST, CPU above 100, missing agent ID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NestJS build&lt;/td&gt;
&lt;td&gt;Passed&lt;/td&gt;
&lt;td&gt;TypeScript compilation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuz07p14w23i1nrykwtb7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuz07p14w23i1nrykwtb7.png" alt="Three passing HTTP E2E tests in Vitest" width="665" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Both automated suites mock &lt;code&gt;AppService&lt;/code&gt;.&lt;/strong&gt; They do not test AWS SDK operations or the service's CPU threshold logic against the emulator. They can run without the emulator.&lt;/p&gt;

&lt;p&gt;The S3, DynamoDB, and SQS workflow was checked manually and recorded in the screenshots. During the documentation review, the tests and build were rerun successfully, alongside read-only emulator checks. The full manual POST/storage/message workflow was not rerun in that review.&lt;/p&gt;

&lt;p&gt;That distinction is the most useful testing lesson from this exercise: a passing HTTP test and a demonstrated service integration answer different questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would improve next
&lt;/h2&gt;

&lt;p&gt;The current implementation writes sequentially: DynamoDB, then S3, then optional SQS. There is no transaction across them. A failure can leave partial data, and a retry can create additional objects or messages.&lt;/p&gt;

&lt;p&gt;The backend also lacks authentication, authorization, rate limiting, idempotency handling, and an alert consumer. Next improvements would include service tests at the 80% boundary, partial-failure tests, a consumer, and an automated emulator integration workflow.&lt;/p&gt;

&lt;p&gt;AWS Emulator itself is intended for development and testing. Resources are held in memory and lost when it stops, and its behavior does not establish production compatibility or IAM policy correctness. See the &lt;a href="https://docs.aws.amazon.com/emulator/latest/userguide/what-is-service.html" rel="noopener noreferrer"&gt;official limitations&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Keep both services on loopback, use emulator credentials, and trust the generated CA. This lab does not require disabling TLS verification. Stop the backend and emulator with Ctrl+C when finished; restart resource initialization and the backend after restarting the emulator.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the lab
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mickychog/aws-emulator-telemetry-lab" rel="noopener noreferrer"&gt;Explore the GitHub repository&lt;/a&gt;, follow either language guide, and compare your results with the captured evidence. If you find a reproducibility problem or want to propose an improvement, &lt;a href="https://github.com/mickychog/aws-emulator-telemetry-lab/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Which would you add first: an SQS consumer, idempotency handling, or automated integration tests?&lt;/p&gt;

&lt;h2&gt;
  
  
  Also available in Spanish
&lt;/h2&gt;

&lt;p&gt;For a Spanish walkthrough of this lab, read &lt;a href="https://builder.aws.com/content/3MQQyEHnyi0cKBEQ6ZfVMJN3IHj/probe-el-nuevo-aws-emulator-con-nestjs-telemetria-local-con-s3-dynamodb-y-sqs" rel="noopener noreferrer"&gt;the article on AWS Builder Center&lt;/a&gt;. Both articles link to the same GitHub repository and its verified setup instructions.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>nestjs</category>
      <category>typescript</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
