<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sidharth Bangera on Medium]]></title>
        <description><![CDATA[Stories by Sidharth Bangera on Medium]]></description>
        <link>https://medium.com/@sidharthhbangera?source=rss-7bc9a0137b9e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*q6cfvr7FvAZewoT_</url>
            <title>Stories by Sidharth Bangera on Medium</title>
            <link>https://medium.com/@sidharthhbangera?source=rss-7bc9a0137b9e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:20:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sidharthhbangera/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Monitoring DynamoDB with Tables: CloudWatch Alarms, IAM Denials, and Global Tables]]></title>
            <link>https://medium.com/@sidharthhbangera/monitoring-dynamodb-with-tables-cloudwatch-alarms-iam-denials-and-global-tables-c821898465fb?source=rss-7bc9a0137b9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c821898465fb</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[amazon-cloudwatch]]></category>
            <category><![CDATA[cloud-monitoring]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sidharth Bangera]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 17:45:39 GMT</pubDate>
            <atom:updated>2026-11-29T18:01:17.814Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Monitoring a database involves more than checking whether it is available. Applications also need visibility into throttling, service errors, and other conditions that could affect reliability.</p><p>For Amazon DynamoDB, Amazon CloudWatch provides metrics and alarms that help teams monitor these conditions. However, creating an alarm is only one part of the process. Its configuration must be verified, changes should remain visible, and users without the required permissions must not be able to modify monitoring resources.</p><p>In this walkthrough, I tested these behaviors using <a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a>, a desktop GUI for <a href="https://aws.amazon.com/dynamodb/">Amazon DynamoDB</a>.</p><p>The experiment focused on creating a CloudWatch alarm through Tables, independently verifying it in AWS, modifying its threshold, and testing how the application responds to restricted IAM permissions.</p><p>I also explored <a href="https://aws.amazon.com/dynamodb/global-tables/">DynamoDB Global Tables</a> to verify how data changes propagate between two AWS Regions.</p><h3>Prerequisites</h3><p>To reproduce this workflow, you need:</p><ol><li><a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a> installed, with access to <strong>Operations Studio → Alarm Center</strong>.</li><li>An approved, non-production AWS environment containing a DynamoDB table.</li><li>An AWS profile with the necessary CloudWatch permissions to create, describe, modify, and delete test alarms.</li><li>Access to the AWS CloudWatch Console and AWS CLI for independent verification.</li><li>A separately configured restricted IAM profile for negative permission testing.</li></ol><p>For this test, I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*zGNoQAdsXV9m_QtIGDZpQg.png" /></figure><p>The Global Tables checks were documented separately under Tables v3.3.45.</p><h3>1. Exploring the CloudWatch Alarm Center</h3><p>I started by opening <strong>Operations Studio → Alarm Center</strong> and selecting the existing DynamoDB test table.</p><p>Initially, the Alarm Center showed no configured Tables alarms and an estimated monitoring coverage of <strong>0%</strong>.</p><p>Four alarm templates were available:</p><ul><li>Read Throttle Events</li><li>Write Throttle Events</li><li>System Errors</li><li>Throttled Requests</li></ul><p>These templates provided a convenient starting point for configuring common DynamoDB monitoring conditions.</p><p>For this experiment, I selected <strong>System Errors</strong> rather than creating a separate custom metric.</p><figure><img alt="Tables CloudWatch Alarm Center showing no existing alarms and templates for read throttling, write throttling, system errors, and throttled requests." src="https://cdn-images-1.medium.com/max/800/0*6LkZ05GsQHWn-Iri.png" /><figcaption><em>Tables CloudWatch Alarm Center showing four DynamoDB alarm templates and 0% estimated coverage.</em></figcaption></figure><p>The interface also provided a notification-channel setting. I left this at <strong>No SNS actions</strong> so the alarm could be tested without sending notifications.</p><h3>2. Creating and Verifying a CloudWatch Alarm</h3><p>Next, I configured a System Errors alarm for the test table.</p><p>The recorded configuration was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*0TOOeQQI02z60rT6GbgGJg.png" /></figure><p>After reviewing the configuration, I used <strong>Create 1 Alarm</strong> in Tables.</p><p>The application displayed a successful creation message, added the alarm to the Existing Alarms list, and increased its estimated monitoring coverage from <strong>0% to 25%</strong>.</p><p>The new alarm initially appeared in the INSUFFICIENT_DATA state.</p><figure><img alt="Tables CloudWatch Alarm Center displaying successful alarm creation, one existing SystemErrors alarm, and 25% estimated coverage." src="https://cdn-images-1.medium.com/max/800/0*WQ-KsNnqvG6odDac.png" /><figcaption><em>The System Errors alarm is created successfully, increasing estimated monitoring coverage to 25%.</em></figcaption></figure><p>The alarm initially appeared in the INSUFFICIENT_DATA state. During a subsequent verification, CloudWatch reported OK, without requiring a manual state change.</p><p>Rather than relying only on the success message, I independently queried Amazon CloudWatch using the AWS CLI.</p><pre>aws cloudwatch describe-alarms `<br>  --alarm-names &quot;DynoConsole-TC_GTR_001_QA-SystemErrors&quot; `<br>  --region us-east-1 `<br>  --profile admin-profile</pre><p>The response confirmed the alarm’s name, recorded metric configuration, threshold, evaluation period, and absence of alarm actions.</p><p>A subsequent check reported the alarm state as OK.</p><figure><img alt="PowerShell terminal displaying a CloudWatch describe-alarms response containing the DynamoDB SystemErrors alarm configuration." src="https://cdn-images-1.medium.com/max/800/0*ZTzz-9Nl5g4OruGF.png" /><figcaption><em>AWS CLI confirms the created CloudWatch alarm and its recorded configuration.</em></figcaption></figure><p>This established that the alarm had been created in AWS and that its saved configuration could be retrieved independently of the Tables interface.</p><h3>An important metric configuration detail</h3><p>Creating an alarm successfully is not necessarily the same as confirming that it monitors the intended metric correctly.</p><p>According to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/metrics-dimensions.html">AWS DynamoDB metric documentation</a>, SystemErrors is published using both TableName and Operation dimensions.</p><p>The captured alarm configuration listed only TableName. Therefore, although the alarm creation, saved configuration, and reported state were verified, the test did not independently demonstrate correct evaluation against actual SystemErrors datapoints.</p><p>This is an important follow-up when configuring a production monitoring rule: verify the metric’s required dimensions and confirm that the alarm receives the expected data.</p><h3>3. Updating an Existing Alarm</h3><p>After creating the alarm, I tested whether its configuration could be modified.</p><p>The Alarm Center displayed the existing alarm and its threshold, but the inspected Tables interface did not provide a direct <strong>Edit</strong> option.</p><p>To complete the configuration-change test, I opened the alarm in the AWS CloudWatch Console.</p><p>I changed the threshold from:</p><p>The five-minute evaluation period and the absence of SNS actions were retained.</p><p>CloudWatch confirmed the update, and an AWS CLI query independently reported a threshold of 1.0, a period of 300 seconds, and an OK state at verification time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*qzGbH_wPcZxBjXD_.png" /></figure><figure><img alt="AWS CloudWatch alarm editor showing an updated static threshold of 1, followed by a successful alarm-update confirmation." src="https://cdn-images-1.medium.com/max/736/0*gDzQlXc7XpxeJ73T.png" /><figcaption>The CloudWatch Console updates the existing alarm threshold from 0 to 1.</figcaption></figure><figure><img alt="AWS CloudWatch confirms the alarm was updated successfully." src="https://cdn-images-1.medium.com/max/800/0*DsgdT8y0B58vZJSx.png" /><figcaption>AWS CloudWatch confirms the alarm was updated successfully.</figcaption></figure><p>I then returned to Tables and refreshed the Alarm Center.</p><p>The existing alarm now displayed:</p><p>Threshold: &gt; 1 over 5m</p><figure><img alt="Tables CloudWatch Alarm Center listing the existing SystemErrors alarm with an updated threshold of greater than 1 over five minutes." src="https://cdn-images-1.medium.com/max/800/0*s-jIFo-3znQh6Xbi.png" /><figcaption><em>After refreshing Tables, the existing alarm displays the updated threshold of greater than 1 over five minutes.</em></figcaption></figure><p>This demonstrated that Tables could retrieve and display a configuration change made directly through AWS CloudWatch.</p><p>The limitation was equally clear: <strong>the tested Alarm Center supported creating, viewing, and deleting alarms, but not directly editing an existing alarm</strong>.</p><p>I also noticed that the creation button displayed <strong>Create 4 Alarms</strong> even after the existing System Errors template became unavailable for selection. This appeared inconsistent with the available templates and was recorded for further investigation.</p><h3>4. Testing an Explicit IAM Deny</h3><p>Monitoring changes should respect the permissions of the AWS identity making the request.</p><p>To test this behavior, I switched from the authorized profile to a deliberately restricted profile containing an explicit IAM denial.</p><p>Tables displayed an <strong>Access Blocked by Explicit Deny</strong> dialog when the restricted identity attempted dynamodb:ListTables.</p><p>The message identified the denied action and explained why the profile could not access the requested resources.</p><figure><img alt="Tables displaying an Access Blocked by Explicit Deny dialog identifying the denied DynamoDB ListTables action and IAM authorization restriction." src="https://cdn-images-1.medium.com/max/800/0*k_2jZTCYxrMsxHHl.png" /><figcaption><em>Tables clearly explains that the restricted IAM profile is blocked from listing DynamoDB tables.</em></figcaption></figure><p>I then performed a separate authorization check through AWS CLI, attempting to create a CloudWatch alarm with the restricted profile.</p><p>AWS rejected the operation with AccessDenied for:</p><p>cloudwatch:PutMetricAlarm</p><p>The response identified an explicit deny in the identity-based policy.</p><p>This is expected AWS IAM behavior. An <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic_AccessPolicyLanguage_Interplay.html">explicit Deny overrides an Allow</a>, preventing unauthorized operations even when another policy appears to grant permission.</p><figure><img alt="PowerShell showing AccessDenied for cloudwatch PutMetricAlarm, followed by a CloudWatch describe-alarms query returning an empty array." src="https://cdn-images-1.medium.com/max/800/0*lcaB_PC-2XWLZR4E.png" /><figcaption><em>AWS rejects the unauthorized CloudWatch alarm-creation request, and an independent lookup finds no created alarm.</em></figcaption></figure><p>To confirm that the failed request had no unintended effect, I queried CloudWatch again using the authorized profile.</p><p>The attempted alarm was absent, while the previously created System Errors alarm retained its configuration.</p><p>After restoring the approved profile in Tables, the table and existing alarm were accessible again.</p><p>The two tests established different parts of the same safety boundary: Tables clearly presented the DynamoDB authorization failure, while AWS directly rejected the unauthorized CloudWatch alarm creation.</p><h3>5. A Second Reliability Check: DynamoDB Global Tables</h3><p>Monitoring is one part of database reliability. Another is ensuring that data remains available across AWS Regions.</p><p>I also tested DynamoDB Global Tables using the same test table.</p><p>Starting with us-east-1, I used <strong>Configuration → Global replicas → Manage replicas</strong> to add a replica in us-east-2.</p><p>Tables displayed a confirmation explaining that the additional replica would incur storage and throughput charges.</p><p>After confirmation, the replica entered the CREATING state and subsequently transitioned to ACTIVE.</p><p>AWS CLI checks independently confirmed that both Regional tables were active.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*SE0HTIuj0AaIo5yp.png" /></figure><figure><img alt="Two Tables Global Tables screenshots showing us-east-1 as the primary Region and us-east-2 transitioning from CREATING to ACTIVE." src="https://cdn-images-1.medium.com/max/800/0*Bfnpc1Ngb2uhRdp3.png" /><figcaption>DynamoDB replica in us-east-2 transitions from CREATING to ACTIVE in Tables.</figcaption></figure><h3>Verifying replication in both directions</h3><p>The initial dataset contained three records.</p><p>After the replica became active, I checked that the same three records and their attributes were available in both Regions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*W-Dm7XWZFgr-SoafhUDz8Q.png" /></figure><p>I then performed controlled updates in each direction:</p><p>Both updates were visible in the opposite Region, and AWS CLI verification confirmed the expected values.</p><figure><img alt="Tables showing the replicated GTR-001 record in us-east-2 with status UPDATED_EAST_1." src="https://cdn-images-1.medium.com/max/799/0*K81kT5OfgLmFoUrV.png" /><figcaption><em>The us-east-2 replica reflects the GTR-001 update originating from us-east-1.</em></figcaption></figure><figure><img alt="Tables showing the GTR-002 record in us-east-1 with status UPDATED_EAST_2 and version 2, confirming reverse-direction replication." src="https://cdn-images-1.medium.com/max/800/0*6khyBBgjnCI6jrS4.png" /><figcaption><em>The us-east-1 primary Region reflects the GTR-002 update originating from us-east-2.</em></figcaption></figure><p>This demonstrated successful bidirectional replication for the tested records.</p><h3>Costs and Limitations</h3><p>CloudWatch alarms may incur charges depending on the alarm type, number of metrics, AWS Region, and applicable Free Tier allowances.</p><p>The alarm used in this test had no SNS notification actions configured. Only one test alarm was created and later removed.</p><p>Global Tables introduce additional considerations, including replicated write activity, regional storage, and replica-related charges.</p><p>For pricing details, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a> and <a href="https://aws.amazon.com/dynamodb/pricing/">Amazon DynamoDB Pricing</a>.</p><h3>The Takeaway</h3><p>Effective DynamoDB monitoring involves creating the right alarms, understanding their configurations, and ensuring that access controls behave as expected.</p><p>Through Tables, I was able to create a CloudWatch alarm, inspect its configuration, monitor its reported state, and delete it after testing. Changes made directly in AWS CloudWatch were also reflected in Tables after refreshing the Alarm Center.</p><p>The permission tests demonstrated how Tables communicates an explicit IAM denial, while AWS independently confirmed that an unauthorized alarm-creation request was rejected without creating a resource.</p><p>Beyond monitoring, the Global Tables workflow demonstrated multi-Region capabilities. Replica creation progressed successfully to an active state, and controlled updates were verified in both directions between us-east-1 and us-east-2.</p><p>Together, these tests showed how <strong>Tables brings DynamoDB monitoring and multi-Region management into a more accessible visual workflow</strong>, making it easier to inspect configurations, understand AWS responses, and manage database operations from a single interface.</p><h4>For me, the main takeaway is that clear visibility, meaningful feedback, and reliable integration with AWS services make everyday database management more approachable and easier to work with.</h4><h3>References</h3><ul><li><a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a></li><li><a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html">Amazon CloudWatch — Using CloudWatch Alarms</a></li><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/metrics-dimensions.html">Amazon DynamoDB — Metrics and Dimensions</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html">AWS IAM — Policy Evaluation Logic</a></li><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html">Amazon DynamoDB — Global Tables</a></li><li><a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a></li><li><a href="https://aws.amazon.com/dynamodb/pricing/">Amazon DynamoDB Pricing</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c821898465fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sharing a Diagnostic Bundle Without Sharing Your Secrets]]></title>
            <link>https://medium.com/@sidharthhbangera/sharing-a-diagnostic-bundle-without-sharing-your-secrets-8ec48b31df17?source=rss-7bc9a0137b9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ec48b31df17</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Sidharth Bangera]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 15:44:24 GMT</pubDate>
            <atom:updated>2026-11-29T15:57:02.785Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>When an application encounters an unexpected error, a screenshot of the warning is often not enough to explain what went wrong.</p><p>A diagnostic log can provide additional context: timestamps, failed operations, error messages, and details about the environment in which the failure occurred. This information is useful when reporting a bug or working with a support team.</p><p>However, diagnostic files deserve the same attention as any other technical data shared outside your machine. Even when credentials are automatically redacted, logs can still contain local file paths, resource names, and other information you might not want to distribute.</p><p>In this walkthrough, I tested the diagnostic tools in <a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a>, a desktop GUI for <a href="https://aws.amazon.com/dynamodb/">Amazon DynamoDB</a>.</p><p>The goal was to understand what Tables records, examine its credential-redaction behavior, and identify what should be reviewed before sending diagnostic evidence to someone else.</p><p>I also tested how Tables distinguishes a verified AWS connection from an explicitly denied one, and briefly checked what happens to an active license when the internet connection is unavailable.</p><h3>Prerequisites</h3><p>To reproduce this workflow, you need:</p><ol><li><a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a> installed.</li><li>An approved, non-production AWS environment with a configured connection in Tables.</li><li>Access to <strong>Settings → Preferences &amp; lifecycle → Diagnostics</strong>.</li><li>A text editor, such as Visual Studio Code, to review copied diagnostic information before sharing it.</li></ol><p>For this test, I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*B7HJLDgKICYW0yQofCutgA.png" /></figure><p>The profiles were already configured in the test environment. No production resources or credentials needed to be changed.</p><h3>1. Collecting Diagnostics in Tables</h3><p>I started by opening <strong>Settings → Preferences &amp; lifecycle → Diagnostics</strong>.</p><p>The Diagnostics panel provides three useful controls:</p><ul><li><strong>Refresh:</strong> Reload the available diagnostic information.</li><li><strong>Copy diagnostics:</strong> Copy the displayed diagnostic output for inspection or support.</li><li><strong>Reveal log file:</strong> Locate the underlying application log on the machine.</li></ul><p>The interface also explains that known sensitive credential values, including AWS keys, AI provider keys, and bearer tokens, are redacted before the diagnostics are displayed or copied.</p><p>This is an important safeguard. Error messages sometimes contain information derived from configuration, authentication, or failed requests, so diagnostic collection should account for sensitive values.</p><figure><img alt="Tables Diagnostics tab displaying Refresh, Copy diagnostics, Reveal log file, diagnostic log entries, and credential-redaction information." src="https://cdn-images-1.medium.com/max/800/0*2GFoWTyl8j4R16XC.png" /><figcaption><em>Tables provides diagnostic collection controls and identifies the credential values it redacts.</em></figcaption></figure><p>For this test, I copied the diagnostic output and opened it in Visual Studio Code for closer inspection.</p><p>The copied information included application activity and error details. It was not limited to the latest operation, so older events appeared alongside more recent entries.</p><p>That matters when investigating an issue: finding an error in a diagnostic file does not necessarily mean it caused the problem currently visible on screen.</p><h3>2. What the Diagnostic Output Contained</h3><p>The inspected diagnostic output contained several types of information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*EgQ6YU5abzjmeu65CxAeqw.png" /></figure><p>Some entries described routine application updates, while others recorded failed DynamoDB operations.</p><p>For example, the logs included a network-related failure when the application could not resolve a DynamoDB endpoint. Other entries recorded the details of a canceled DynamoDB transaction.</p><p>These entries can be useful when reproducing an issue, especially when a support engineer needs to distinguish a network problem from an AWS permissions error or an application failure.</p><p>One detail stood out: <strong>local Windows file paths were present in the diagnostic output</strong>.</p><p>Application paths and stack traces can reveal information about the local operating system, user directory, or installation location. This information is not necessarily a credential, but it may still be inappropriate to include in a public bug report or blog post.</p><figure><img alt="Visual Studio Code displaying Tables diagnostic JSON with application logs, timestamps, and a search for an AWS access-key identifier showing No results." src="https://cdn-images-1.medium.com/max/800/0*CaQQRe7EZWLxoOLT.png" /><figcaption><em>Inspecting copied Tables diagnostics in Visual Studio Code, including a search for an AWS access-key identifier that returned no matches.</em></figcaption></figure><p>As an additional check, I searched the copied diagnostics for an AWS access-key identifier. Visual Studio Code returned <strong>No results</strong> for the searched value.</p><p>The inspected output contained useful application logs and error information, but no plaintext AWS credentials were identified during the review.</p><p>While this supports the findings from the diagnostic inspection, it does not independently establish that every possible credential would be automatically redacted.</p><p>The takeaway from this inspection was straightforward: automatic credential redaction is valuable, but it does not replace reviewing the output before sharing it.</p><p>The absence of visible plaintext credentials in this particular sample is not a guarantee that every possible secret format or sensitive value would be excluded in every circumstance.</p><h3>3. Distinguishing a Verified AWS Connection From an Access Failure</h3><p>Next, I checked how Tables communicates AWS connection status.</p><p>A connection being selected is not the same as AWS access being successfully verified. A stored profile may exist even when its permissions are insufficient to perform an operation.</p><p>I first selected an approved AWS profile.</p><p>Tables displayed a green <strong>Connected</strong> label, and the application successfully listed DynamoDB tables in us-east-1.</p><figure><img alt="Tables workspace showing a green Connected status for the approved AWS profile and DynamoDB tables listed in the sidebar." src="https://cdn-images-1.medium.com/max/800/0*L45TJMRa-T0UX6j2.png" /><figcaption><em>Tables displays a green Connected indicator after successful AWS access verification.</em></figcaption></figure><p>I then switched to a deliberately restricted test profile containing an explicit IAM Deny.</p><p>Instead of displaying the same green connection status, Tables showed that <strong>AWS access was not verified</strong>.</p><p>The application also displayed an error explanation identifying the denied operation, dynamodb:ListTables, and the explicit IAM policy restriction.</p><figure><img alt="Tables displaying an Access Blocked by Explicit Deny dialog for the DynamoDB ListTables operation, with an AWS access not verified warning in the background." src="https://cdn-images-1.medium.com/max/799/0*SMQ1HD6t54hgByCS.png" /><figcaption><em>Tables distinguishes unverified AWS access from a successful connection and explains the explicit IAM denial.</em></figcaption></figure><p>This distinction is useful during troubleshooting.</p><p>The underlying authorization decision comes from AWS IAM. Tables is responsible for presenting that failure clearly to the user rather than implying that the connection is healthy.</p><p>In this case, the application correctly distinguished the verified profile from the restricted one. No IAM permissions were modified to make the denied connection succeed.</p><h3>4. Verifying Diagnostic Privacy Before Sharing</h3><p>The next step was to examine whether the diagnostics collected through Tables exposed sensitive information.</p><p>Tables includes built-in redaction for known sensitive values, including AWS credentials, AI provider keys, and bearer tokens.</p><p>To inspect the resulting output, I used <strong>Copy diagnostics</strong>, opened the JSON in Visual Studio Code, and reviewed its contents for potentially sensitive information.</p><p><strong>No plaintext credentials were identified in the inspected diagnostic sample.</strong> The output retained useful troubleshooting details, including application version, operating system information, timestamps, recent actions, and error messages.</p><p>The env section, for example, contained the application and runtime versions without displaying AWS authentication credentials.</p><p>This confirmed that the diagnostic sample retained useful troubleshooting context without exposing identifiable plaintext credentials during our inspection. It did not independently establish that every possible secret format would be redacted.</p><p>The remaining precaution is to check whether the output contains any local file paths, account identifiers, or other details that are unnecessary for the intended recipient.</p><h3>A quick review before sharing</h3><p>Even with automatic redaction, it is good practice to review diagnostics before distributing them.</p><p>My approach would be:</p><ol><li><strong>Collect diagnostics through Tables.</strong> Use the built-in Copy diagnostics option, which applies the application’s credential-redaction safeguards.</li><li><strong>Inspect the copied output.</strong> Review the application metadata, errors, and log entries to confirm that the relevant troubleshooting information is present.</li><li><strong>Check for unnecessary identifying details.</strong> Local file paths, usernames, resource identifiers, or application-specific data may not be credentials, but they might not be needed by every recipient.</li><li><strong>Share through an appropriate channel.</strong> Provide the reviewed diagnostic information to the intended support team, using a restricted channel when necessary.</li></ol><p>The amount of information worth retaining also depends on the audience. Authorized product support may need detailed logs to investigate a specific issue, whereas public bug reports and articles generally benefit from sanitized examples.</p><p><strong>Tables provides the initial protection by redacting known credential values. Reviewing the remaining information before sharing adds a practical second layer of care.</strong></p><p>The objective is to preserve useful diagnostic evidence while avoiding unnecessary disclosure.</p><h3>5. A Short Check of Offline License Behavior</h3><p>I also tested how Tables handles an active license when internet connectivity is unavailable.</p><p>With the application already signed in, I disconnected the machine from the internet and opened the <strong>License &amp; Account</strong> screen.</p><p>Tables continued to display the license as <strong>Active</strong>, along with an offline-access validity timestamp. At the same time, the application displayed a fetch failed warning because the network request could not complete.</p><figure><img alt="Tables License &amp; Account page showing an active license, billing verification not yet completed, and an account API request failed warning." src="https://cdn-images-1.medium.com/max/800/0*5TZi6QKyVrfFnRDR.png" /><figcaption><em>Tables continues displaying an active license during the offline test despite a failed network request.</em></figcaption></figure><p>The observed result showed that the existing license state remained active during the offline session, without requiring a successful online account request.</p><p>However, this does not mean every feature works offline. AWS-backed operations still require connectivity to the relevant AWS services, and the test did not verify all offline capabilities.</p><p>The observation applies to the active license and validity period tested here, rather than establishing identical behavior for every license or trial state.</p><h3>Costs and Limitations</h3><p>Collecting and inspecting the local diagnostic output did not require creating new AWS resources.</p><p>The AWS connection checks involved AWS API access, while the offline license check concerned Tables’ application entitlement. These are separate behaviors, and any AWS service usage remains subject to the applicable service pricing and account limits.</p><p>The findings are based on Tables v3.3.46 and the inspected diagnostic sample. They demonstrate the application’s stated redaction safeguards and the information observed in the copied output, rather than constituting a comprehensive security audit of every possible credential format.</p><h3>The Takeaway</h3><p>Diagnostic information is valuable because it helps turn an unexpected application error into something that can be investigated.</p><p>In this test, Tables provided a straightforward way to collect diagnostic information, applied its stated credential-redaction safeguards, and clearly distinguished successful AWS access from an explicit IAM denial.</p><p>The copied output retained useful troubleshooting context, including application metadata, timestamps, and error details. These can help support teams investigate problems without requiring users to share their AWS credentials.</p><p>The most useful approach combines <strong>built-in credential redaction with a brief review of the information being shared</strong>.</p><p>By collecting diagnostics through the application’s provided controls, checking the resulting output, and sharing it with the intended audience, users can provide meaningful troubleshooting evidence while keeping sensitive information better protected.</p><h3>References</h3><p><em>Originally published at </em><a href="https://dev.to/sidharth_bangera/sharing-a-diagnostic-bundle-without-sharing-your-secrets-gpl"><em>https://dev.to</em></a><em> on November 29, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ec48b31df17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All or Nothing: Testing DynamoDB Transaction Atomicity with Tables]]></title>
            <link>https://medium.com/@sidharthhbangera/all-or-nothing-testing-dynamodb-transaction-atomicity-with-tables-570631bc9349?source=rss-7bc9a0137b9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/570631bc9349</guid>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[database-management]]></category>
            <category><![CDATA[database-transaction]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sidharth Bangera]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 19:12:46 GMT</pubDate>
            <atom:updated>2026-11-27T19:30:11.221Z</atom:updated>
            <content:encoded><![CDATA[<p>A database transaction is easy to appreciate when it succeeds. The more important question is what happens when one operation fails after several other changes have been requested.</p><p>Suppose an application needs to create a record, update an existing balance, and delete an obsolete item. If a final validation check fails, none of those changes should be committed. Otherwise, the application could be left with data that describes a transaction that never actually completed.</p><p>I tested this behavior using <a href="https://tables.serverlesscreed.com/"><strong>Tables by ServerlessCreed</strong></a> and <a href="https://aws.amazon.com/dynamodb/"><strong>Amazon DynamoDB</strong></a>. The experiment had three parts: commit a valid transaction, deliberately fail the final condition in a second transaction, and correct the request before verifying the committed state independently with the AWS CLI.</p><p>The test used <strong>Tables v3.3.46</strong>, a disposable DynamoDB table in , and on-demand capacity. The data below is synthetic test data.</p><h3>Prerequisites</h3><p>To reproduce this workflow, you need:</p><ol><li><a href="https://tables.serverlesscreed.com/"><strong>Tables by ServerlessCreed</strong></a> installed, with access to <strong>Operations Studio → Transaction Builder</strong>.</li><li>An approved, non-production AWS environment with an active DynamoDB connection configured in Tables.</li><li>An AWS profile with the required DynamoDB read and transaction permissions.</li><li>A disposable DynamoDB table for safely testing transaction operations.</li><li><a href="https://aws.amazon.com/cli/"><strong>AWS CLI</strong></a> installed and configured for independent verification of the results.</li></ol><p>For this test, I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*3r-r268Fpv2aWnEtWZ9gzw.png" /></figure><h3>Starting with a known state</h3><p>I began with three items in an isolated table. The id attribute was the String partition key, and version was a Number used for optimistic checks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*aDIoOPWJsP3KqQCjsLDgTw.png" /></figure><figure><img alt="Tables displaying three initial DynamoDB records with their balances, versions, and statuses before transaction execution." src="https://cdn-images-1.medium.com/max/800/0*fcltJMbDpetX0YJk.png" /><figcaption><em>Baseline records before running any transaction.</em></figcaption></figure><p>Having an explicit baseline made it possible to distinguish a committed change from a partial write or a stale result.</p><h3>A valid transaction: all changes commit</h3><p>I opened <strong>Operations Studio → Transaction Builder</strong>, selected <strong>TransactWrite</strong>, and configured three actions against distinct items:</p><ol><li><strong>Update </strong><strong>ADV-001:</strong> Change balance from 100 to 90 and version from 1 to 2, provided its existing version is 1.</li><li>Create a new item with balance 10, version 1, and status CREATED, provided it does not already exist.</li><li><strong>ConditionCheck </strong><strong>ADV-GUARD:</strong> Require status READY and version 1.</li></ol><p>The update used the expression:</p><pre>SET #b = :newBalance, #v = :newVersion</pre><p>Here, #b and #v are aliases for the real attribute names balance and version; the : tokens refer to supplied values. This makes the intended update explicit while keeping the attribute names and values separate.</p><p>Tables showed <strong>3/3 valid</strong> and indicated that atomic behavior was enabled. That was a <em>local validation result</em>: DynamoDB still had to evaluate the conditions and accept the transaction.</p><figure><img alt="Tables Transaction Builder showing three validated operations: Update, Put, and ConditionCheck, with 3/3 valid." src="https://cdn-images-1.medium.com/max/800/0*7wxcVAg27ao_b1SU.png" /><figcaption><em>Three operations reviewed and locally validated before execution.</em></figcaption></figure><p>After execution, Tables displayed <strong>“Transaction committed successfully”</strong> and reported <strong>6.00 capacity units</strong>. A fresh scan showed the expected data: ADV-001 now had balance 90 and version 2, ADV-NEW existed, and the other original items were unchanged.</p><figure><img alt="Tables displaying a green transaction success message after committing three operations, reporting 6.00 capacity units." src="https://cdn-images-1.medium.com/max/800/0*X-d09temd5K2xldc.png" /><figcaption><em>Successful commit reported in Tables.</em></figcaption></figure><figure><img alt="Refreshed DynamoDB table showing ADV-001 updated to balance 90 and version 2, with ADV-NEW successfully created." src="https://cdn-images-1.medium.com/max/800/0*daE2fN-hMJ_VCkQ2.png" /><figcaption><em>he item view confirms the committed changes.</em></figcaption></figure><h3>A deliberate failure: what happens to the other writes?</h3><p>The next request was intentionally designed to fail. I added <strong>four</strong> operations in this order:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*PE3XA4h4N41109UN9VPGvQ.png" /></figure><p>The guard item’s real version was <strong>1</strong>, not 99. The last condition was therefore guaranteed to fail against the recorded baseline. Despite that, the builder displayed <strong>4/4 valid</strong> because the request’s structure and expressions were valid.</p><figure><img alt="Transaction Builder showing four validated operations: Put, Update, Delete, and a ConditionCheck requiring version 99." src="https://cdn-images-1.medium.com/max/800/0*W3dtflppug-xzkSf.png" /><figcaption><em>The failure test is structurally valid, even though its final condition is false.</em></figcaption></figure><h3>What the failure analyzer showed</h3><p>When I executed the request, Tables opened its <strong>Transaction Failure Analyzer</strong>. The result was unambiguous: <strong>one of four operations failed, and no writes were committed</strong>.</p><p>The first three operations were shown as <strong>Rolled back</strong>. The fourth was marked <strong>ConditionalCheckFailed</strong>. The analyzer also displayed the actual item value, explaining that the record had version <strong>1</strong> while the request expected <strong>99</strong>.</p><figure><img alt="Tables Transaction Failure Analyzer showing three operations rolled back and the fourth failing with ConditionalCheckFailed because version 1 did not match 99." src="https://cdn-images-1.medium.com/max/800/0*WSMYmK1twiDDVacJ.png" /><figcaption><em>Tables maps the cancellation to the fourth operation and explains the version mismatch.</em></figcaption></figure><p>This is an important distinction: <strong>DynamoDB provides the all-or-nothing transaction guarantee and the cancellation response; Tables presents those results in an operation-by-operation diagnostic view.</strong> Tables did not perform a compensating rollback after partially committed writes. The transaction was canceled without those writes committing.</p><p>The downloaded diagnostic report also contained the failing operation’s cancellation details:</p><pre>{<br>  &quot;index&quot;: 3,<br>  &quot;code&quot;: &quot;ConditionalCheckFailed&quot;,<br>  &quot;message&quot;: &quot;The conditional request failed&quot;<br>}</pre><p>The report uses a <strong>zero-based index</strong>, so index: 3 identifies the fourth operation. DynamoDB&#39;s cancellation reasons correspond to the order of actions in the submitted request, which makes this useful when investigating a longer transaction.</p><figure><img alt="VS Code displaying the exported transaction failure report with cancellation reason index 3 and error code ConditionalCheckFailed." src="https://cdn-images-1.medium.com/max/800/0*PHqHmfXmJWVgpAcf.png" /><figcaption><em>The exported diagnostic report confirms the operation index and failure reason.</em></figcaption></figure><p>I then returned to the table and ran a fresh scan. ADV-FAIL was <strong>absent</strong>, ADV-002 still had balance <strong>50</strong> and status <strong>ACTIVE</strong>, and ADV-NEW had <strong>not</strong> been deleted. ADV-001 and ADV-GUARD were unchanged as well.</p><figure><img alt="DynamoDB table showing ADV-NEW still present, ADV-002 unchanged at balance 50, and no ADV-FAIL item after the canceled transaction." src="https://cdn-images-1.medium.com/max/799/0*TqgJuIqnsejPB9EL.png" /><figcaption><em>The unchanged item state provides direct evidence that no partial writes committed.</em></figcaption></figure><h3>Correct the condition, then verify the result</h3><p>To test recovery, I changed the final condition to require the guard item’s actual version, <strong>1</strong>, and reconstructed the four-operation request.</p><p>One detail matters for interpreting the result: during this manual reconstruction, the <strong>Update action was also configured differently</strong>. Instead of attempting balance 999 and a changed status, it set ADV-002 to <strong>balance 90, version 2</strong>, leaving its ACTIVE status intact. This was a corrected <em>and reconstructed</em> request, not a byte-for-byte replay with only one condition changed.</p><p>The corrected transaction committed. Tables displayed a success banner reporting <strong>8.00 capacity units</strong>, and a fresh scan reflected the submitted operations: ADV-FAIL existed, ADV-NEW was gone, and ADV-002 had balance 90 and version 2.</p><figure><img alt="Tables displaying a successful four-operation transaction after correcting the condition, reporting 8.00 capacity units." src="https://cdn-images-1.medium.com/max/799/0*BYvkJlNYv3kZl0TC.png" /><figcaption><em>The corrected transaction commits as a single request.</em></figcaption></figure><figure><img alt="Refreshed DynamoDB table showing ADV-FAIL created, ADV-002 updated to balance 90 and version 2, and ADV-NEW deleted." src="https://cdn-images-1.medium.com/max/799/0*xskeWDhNEXEXDQ9Y.png" /><figcaption><em>The final Tables item state matches the reconstructed request.</em></figcaption></figure><p>I also verified the final state directly with the AWS CLI, rather than relying only on the application’s table view. The command used DynamoDB’s --consistent-read option:</p><pre>aws dynamodb scan --table-name YOUR_TEST_TABLE --consistent-read --region us-east-1 --profile YOUR_APPROVED_PROFILE --query &quot;Items[].{Id:id.S,Balance:balance.N,Version:version.N,Status:status.S}&quot; --output table</pre><p>The CLI returned four items:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*hJDvJ9xH3PCw3Z4j2XtwOA.png" /></figure><p>The deliberately named SHOULD_NOT_EXIST item <strong>should</strong> exist at this stage: its creation was part of the now-successful corrected transaction. The absent ADV-NEW item confirmed the delete operation had committed.</p><figure><img alt="PowerShell displaying a strongly consistent DynamoDB scan with four records, confirming the final balances, versions, and statuses." src="https://cdn-images-1.medium.com/max/800/0*2MC4UUrf7da3iOfZ.png" /><figcaption><em>Independent AWS CLI verification matches the final state shown in Tables.</em></figcaption></figure><h3>Two practical considerations: capacity and safety</h3><p>Transactions provide stronger coordination, but they have capacity implications. DynamoDB performs additional work to prepare and commit transactional writes. For an item up to 1 KB, a transactional write requires <strong>two write units</strong>. Capacity can also be consumed by a canceled transaction. The <strong>6.00</strong> and <strong>8.00</strong> figures above were the capacity measurements displayed by Tables, <strong>not dollar charges</strong>; actual cost depends on usage, billing mode, and AWS pricing.</p><p>TransactWriteItems supports up to <strong>100 actions</strong> and <strong>4 MB</strong> of data per request. All referenced tables must be within the same AWS account and Region, and two actions cannot target the same item. These are DynamoDB constraints rather than Tables-specific limits.</p><h3>The takeaway</h3><p>The clearest proof of transaction atomicity came from the failed request, not the successful one. The fourth condition evaluated to false, the failure was mapped to the correct operation, and <strong>none of the preceding put, update, or delete actions committed</strong>.</p><p>Tables helped make that failure understandable through its operation-level analyzer and downloadable diagnostic report. DynamoDB supplied the underlying transactional guarantee. Checking the item state after cancellation-and verifying the corrected final result through the AWS CLI-made the difference between seeing a status message and establishing what actually happened to the data.</p><h3>Further reading</h3><ul><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transactions.html">Amazon DynamoDB: Managing transactions</a></li><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html">Amazon DynamoDB: TransactWriteItems API</a></li><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html">Amazon DynamoDB: Read and write capacity consumption</a></li><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Constraints.html">Amazon DynamoDB: Transaction constraints</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=570631bc9349" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running a DynamoDB GUI Without a Mouse: Testing Keyboard and Screen-Reader Accessibility]]></title>
            <link>https://medium.com/@sidharthhbangera/running-a-dynamodb-gui-without-a-mouse-testing-keyboard-and-screen-reader-accessibility-8fa45867bd9d?source=rss-7bc9a0137b9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fa45867bd9d</guid>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sidharth Bangera]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 13:31:19 GMT</pubDate>
            <atom:updated>2026-11-12T13:46:24.036Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7XaQjUvBUfnmB8G3.png" /></figure><h3>Introduction</h3><p>A database GUI can make working with DynamoDB easier, but can you still complete everyday operations without using a mouse?</p><p>In this walkthrough, I tested <a href="https://tables.serverlesscreed.com/"><strong>Tables by ServerlessCreed</strong></a>, a desktop DynamoDB GUI, using keyboard navigation and Windows Narrator.</p><p>The goal was to open a table, execute a Scan, inspect and edit an item, and export results without relying on the mouse. I also tested platform shortcuts, focus behavior, screen-reader announcements, and recovery from a network failure.</p><h3>Prerequisites</h3><p>To reproduce this workflow, you need:</p><ol><li><a href="https://tables.serverlesscreed.com/downloads">Tables by ServerlessCreed</a> installed.</li><li>Access to an approved, non-production DynamoDB environment.</li><li>A configured AWS connection with suitable read/write permissions.</li><li>A keyboard and Windows Narrator or another screen reader.</li><li>A disposable test item for editing operations.</li></ol><p>For this test, I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*34yapcJj85wDqDaxlKCk9g.png" /></figure><h3>1. Testing platform keyboard shortcuts</h3><p>I started by opening the Keyboard section under Preferences &amp; Application Lifecycle.</p><p>Tables documented five Windows shortcuts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*echXf-3nCU4ysWjli4DzUQ.png" /></figure><p>All five worked during the initial testing.</p><figure><img alt="Tables Keyboard preferences showing five documented platform shortcuts and their scopes." src="https://cdn-images-1.medium.com/max/800/0*zRnLoSagC92wmK4i.png" /><figcaption><em>The five documented platform shortcuts in Tables.</em></figcaption></figure><p>I then opened the PartiQL editor and entered:</p><pre>SELECT * FROM &quot;Composite_Scan_500&quot;</pre><p>With the editor focused, pressing Ctrl+K opened the command palette. Pressing Esc closed it, while Ctrl+B toggled the sidebar.</p><p>The SQL statement remained unchanged throughout these interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*HuW0brQB4YNAGmi5.png" /></figure><figure><img alt="Tables command palette opened over the PartiQL Workbench." src="https://cdn-images-1.medium.com/max/800/0*46EokCYMQoDQ8W3j.png" /><figcaption><em>The command palette opens without altering the SQL statement.</em></figcaption></figure><p>This confirmed that the tested global shortcuts did not interfere with editor contents. However, a deliberate reassignment conflict was not tested because no shortcut-remapping option was available in the inspected settings.</p><h3>2. Navigating with Windows Narrator</h3><p>Next, I enabled Windows Narrator using Win + Ctrl + Enter and navigated through Tables using Tab, Shift+Tab, and Enter.</p><p>The Settings menu was reachable without a mouse.</p><p>Narrator identified it as an <strong>Open Settings Menu button</strong> and announced its menu items, including:</p><blockquote><em>Preferences &amp; Lifecycle, menu item 1 of 3.</em></blockquote><figure><img alt="Settings menu opened with a visible keyboard focus outline." src="https://cdn-images-1.medium.com/max/800/0*tSZY9ARpZrbSvQhG.png" /><figcaption><em>Keyboard focus on the Settings menu while Windows Narrator identifies the available controls.</em></figcaption></figure><p>Pressing Esc closed the menu successfully. However, focus restoration was occasionally unclear, with the visible focus indicator appearing around the Settings tooltip or an empty rectangular area.</p><p>I then navigated to DemoTable and opened it using Enter.</p><p>Narrator announced the table name, active status, and item count.</p><p>This demonstrated that the main table-selection workflow was accessible through keyboard navigation.</p><h3>3. Running a Scan, editing an item, and exporting data</h3><p>With DemoTable open, I navigated to the <strong>Run</strong> button.</p><p>Narrator correctly announced “Run button,” and pressing Enter executed a read-only Scan.</p><p>Tables returned the four existing records.</p><figure><img alt="Run button focused in DemoTable, with four records displayed." src="https://cdn-images-1.medium.com/max/800/0*WoN-PHZ3H7tlpcW5.png" /><figcaption><em>Executing a DynamoDB Scan through keyboard navigation.</em></figcaption></figure><p>Although the Scan succeeded, Narrator did not announce a distinct completion message or returned-item count.</p><h3>Editing a disposable item</h3><p>Next, I opened the Create Item dialog using the keyboard.</p><p>I created a disposable item with userID = 106 and Status = Active.</p><p>After verifying its creation, I opened the item editor and changed its primary key from 106 to 150.</p><p>Tables displayed a warning explaining that changing a primary key recreates the item.</p><p>After saving, the updated record appeared under userID = 150.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Vt-2-9cgpD9ECIJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*p5EmZmauHq3KmYK6.png" /></figure><figure><img alt="DemoTable showing the disposable record with userID 150 after editing." src="https://cdn-images-1.medium.com/max/800/0*edgwn-8Mt445cpBt.png" /><figcaption>T<em>he disposable item after changing its primary key through the keyboard-accessible editor.</em></figcaption></figure><p>During item inspection, I also encountered two limitations: I could not deselect a selected item using the attempted Enter or Space interactions, and Esc did not close the persistent Item Inspector.</p><h3>Exporting the results</h3><p>Finally, I navigated to the <strong>Export</strong> option using the keyboard, which opened the Data Transfer Center in Tables.</p><p>I selected JSON export for the loaded results, navigated to <strong>Start export</strong>, and completed the Windows Save dialog without using the mouse.</p><figure><img alt="Tables Data Transfer Center showing JSON export options for six loaded records." src="https://cdn-images-1.medium.com/max/800/0*VhctYPfWWN9qdyxB.png" /><figcaption><em>Exporting loaded DynamoDB results to a local JSON file through keyboard navigation.</em></figcaption></figure><p>The exported file was independently opened in VS Code and contained six records.</p><p>Tables indicated that the export used already loaded results without requiring an additional DynamoDB read.</p><h3>4. Empty states, errors, and recovery</h3><p>I also tested how Tables communicated an empty table and a network failure.</p><p>Opening ABC-EFG, an empty table, displayed a message explaining that no items were present.</p><p>Narrator announced the table name and zero-item count, although the central empty-state description was not announced during the observed interaction.</p><h3>Network failure</h3><p>I deliberately disconnected the internet and attempted a read-only Scan.</p><p>Tables displayed a DNS lookup failure along with a network-error notification.</p><figure><img alt="Tables displaying a red DNS lookup failure message after a read-only Scan." src="https://cdn-images-1.medium.com/max/799/0*PeCycMZ29frawH7k.png" /><figcaption><em>Tables displays a network-related error, which Windows Narrator successfully announces.</em></figcaption></figure><p>Unlike the successful Scan completion, the network error was announced by Narrator.</p><p>After reconnecting, the error disappeared and the table returned to its normal empty state. No separate recovery announcement was observed.</p><p>The failure was caused by the deliberately disconnected network, not an AWS permissions issue.</p><h3>5. Accessibility Findings and Observations</h3><p>The testing demonstrated that Tables supports several essential keyboard-driven operations, including table navigation, query execution, item editing, and data export. Windows Narrator also identified key interface controls and announced network errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*GDQJZC61m3LgxypitCGdUw.png" /></figure><p>Overall, the core workflow was successfully completed without relying on a mouse. The results also highlighted areas where keyboard interaction and screen-reader feedback could be more consistent.</p><p>In particular, predictable selection behavior, clear focus indication, and meaningful announcements after an operation can help users navigate the application more confidently.</p><p>These observations reflect the behavior encountered during testing and identify opportunities for further accessibility improvements.</p><h3>Practical takeaways</h3><p>This testing demonstrated that a core DynamoDB workflow in Tables can be completed through keyboard navigation.</p><p>I could open a table, execute a Scan, create and edit a disposable record, and export the results without relying on a mouse.</p><p>The platform shortcuts also worked, including opening the command palette while preserving the contents of the PartiQL editor.</p><p>However, accessibility involves more than activating controls. Predictable focus behavior, item deselection, dialog dismissal, and meaningful screen-reader announcements are equally important.</p><p>The network failure test illustrated this distinction particularly well: Tables displayed the error, Narrator announced it, and the interface returned to a usable state after connectivity was restored.</p><p>For me, the main takeaway is that <strong>a database GUI should make every step understandable, not just executable, without a mouse</strong>.</p><p><strong>Costs and limits:</strong> No additional Tables-specific costs were measured during this test. The small number of DynamoDB reads and writes remained subject to standard AWS pricing, while the export of already loaded results required no additional DynamoDB reads. Testing was limited to Windows 11 and Tables v3.3.42.</p><p>For further details, see <a href="https://aws.amazon.com/dynamodb/pricing/">DynamoDB pricing</a> and <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html">Scanning tables in DynamoDB</a>.</p><p><strong>Application:</strong> <a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a></p><p><strong>Download:</strong> <a href="https://tables.serverlesscreed.com/downloads">Official Tables downloads</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fa45867bd9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing DynamoDB Access for AI Agents: Testing MCP, OAuth, and Least-Privilege Controls in Tables]]></title>
            <link>https://medium.com/@sidharthhbangera/securing-dynamodb-access-for-ai-agents-testing-mcp-oauth-and-least-privilege-controls-in-tables-d64ce1a706cd?source=rss-7bc9a0137b9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d64ce1a706cd</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <category><![CDATA[amazon-dynamodb]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Sidharth Bangera]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 17:12:27 GMT</pubDate>
            <atom:updated>2026-11-11T17:32:18.756Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>When I connect an AI agent to a database, I want to control which AWS connection it can use, what operations it can perform, and whether an unauthorized request can reach the database.</p><p>In this walkthrough, I use <a href="https://tables.serverlesscreed.com/"><strong>Tables by ServerlessCreed</strong></a>, a DynamoDB GUI with a built-in MCP server, to connect Codex CLI to a non-production DynamoDB environment and test the access controls around that connection.</p><p>The workflow covers starting a local MCP server, exposing a single AWS profile, completing OAuth authorization, retrieving DynamoDB table metadata, and checking what happens when a request is made without authentication.</p><p>I also verify the server’s network binding independently using PowerShell. This matters because a successful connection alone does not establish whether the server is listening only on the local machine.</p><h3>Prerequisites</h3><p>To reproduce the workflow, you need:</p><ol><li><a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a> installed. The installer is available from the <a href="https://tables.serverlesscreed.com/downloads">official download page</a>.</li><li>Access to an approved, non-production DynamoDB environment.</li><li>At least one AWS connection configured in Tables, preferably with read-only permissions.</li><li>An MCP-compatible AI client, such as Codex CLI.</li><li>PowerShell or another tool for verifying local network connections.</li></ol><p>For this test, I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*TkiVWK6Ci1q6LiPfHS4z8Q.png" /></figure><p>The endpoint port was assigned during the test and may differ in another session.</p><h3>1. Starting the MCP server and verifying local access</h3><p>I opened the Workspace Agent panel in Tables, selected the <strong>MCP</strong> tab, and enabled the built-in MCP server.</p><p>Initially, no AWS profiles were exposed. This allowed the server to start without immediately making any configured AWS connection available to an external agent.</p><p>After the server started, Tables displayed the endpoint:</p><pre>http://127.0.0.1:61041/mcp</pre><p>I then exposed the read-only AWS profile in us-east-1, leaving the other connections unexposed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnBXHGmwIIQxPEpyZpINMg.png" /></figure><figure><img alt="Tables Workspace Agent showing the running MCP server on localhost with the read-only AWS profile exposed." src="https://cdn-images-1.medium.com/max/702/1*L_85rvPJ0fvxViaxedSr5w.png" /><figcaption><em>Tables Workspace Agent showing the running MCP server, local endpoint, and exposed read-only AWS profile.</em></figcaption></figure><h3>Verifying the loopback binding</h3><p>Next, I checked whether the MCP server was actually listening on the loopback interface.</p><p>I used PowerShell to inspect the listening TCP connection:</p><pre>$port = 61041<br><br>Get-NetTCPConnection -State Listen -LocalPort $port |<br>    Select-Object LocalAddress, LocalPort, State, OwningProcess<br><br>Test-NetConnection 127.0.0.1 -Port $port</pre><p>The results showed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*DBaAmCgpq4k2p45YJ8V-dQ.png" /></figure><figure><img alt="Windows PowerShell displaying a listening TCP connection on 127.0.0.1 port 61041 and a successful local connectivity test." src="https://cdn-images-1.medium.com/max/1024/1*8UDOOPJ3dJRl1UObUD8TXA.png" /><figcaption><em>PowerShell confirms that the MCP server is listening on 127.0.0.1:61041, with TcpTestSucceeded: True. This independently verifies the observed local binding rather than relying only on the endpoint displayed in Tables.</em></figcaption></figure><p>This was the first important verification point. Rather than relying only on the endpoint shown in Tables, I confirmed that the observed listening socket was bound to the loopback address.</p><h3>2. Exposing one AWS profile and authorizing Codex</h3><p>With the server running, I moved to the client connection.</p><p>Tables generated a Codex CLI connection command for the exposed read-only profile.</p><p>I registered the profile-specific MCP endpoint using:</p><pre>codex mcp add dynamoconsole-read-only --url &quot;http://127.0.0.1:61041/mcp?profile=read-only&quot;</pre><p>Codex detected OAuth support and opened the browser authorization flow.</p><p>The authorization request was then displayed inside the Tables Agent panel.</p><p>The request identified:</p><ul><li>Client: Codex</li><li>Requested AWS profile: read-only</li><li>Region: us-east-1</li><li>Advertised scope: dynamoconsole:read</li><li>Selected permission: Read only</li></ul><p>I kept the permission level set to <strong>Read only</strong> rather than granting broader access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vH7fC9rzDTM44uPln473Vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9nAND_Ue3R2SKOFk91UagA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*d5wII2CVYb5s9SPMtoSaEw.png" /><figcaption><em>Tables showing Codex’s OAuth request for the exposed read-only profile, with Read only consent selected.</em></figcaption></figure><p>After approving the connection, the browser displayed an authentication-complete message.</p><p>Tables also listed Codex under <strong>Approved clients</strong>, showing the authorized profile and Read only permission.</p><p>The local MCP audit recorded an authorization-approved event and displayed a verified audit-chain indicator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oSkhMkEK-Czy4168rK_Few.png" /></figure><figure><img alt="Tables MCP panel showing Codex under Approved clients with Read only permission and an authorization-approved audit event." src="https://cdn-images-1.medium.com/max/702/0*JaFZEmktZVaSVmpP.png" /><figcaption><em>After OAuth approval, Tables lists Codex as an authorized MCP client with Read only access. The local audit records the authorization event and displays a verified audit chain.</em></figcaption></figure><p>This step demonstrated that starting the MCP server and granting a client access were separate operations.</p><p>The client needed explicit authorization before using the exposed AWS connection.</p><h3>3. Listing DynamoDB tables through the MCP connection</h3><p>Once OAuth authorization was complete, I opened Codex and inspected the connected MCP tools.</p><p>Codex reported that dynamoconsole-read-only was connected and exposed <strong>eight tools</strong>, including:</p><p>I began with table discovery rather than retrieving items or executing queries.</p><p>I asked Codex to use only the authorized MCP connection to list DynamoDB tables in us-east-1, without accessing item contents or modifying data.</p><p>Codex invoked:</p><pre>dynoconsole_table_list</pre><p>The tool returned <strong>14 DynamoDB tables</strong> through the approved read-only profile.</p><p>The response also reported:</p><pre>truncated: false</pre><p>No item retrieval, query execution, or data modification was reported during this operation.</p><figure><img alt="Codex CLI showing a successful MCP table-list operation through the read-only AWS profile, returning 14 DynamoDB tables in us-east-1." src="https://cdn-images-1.medium.com/max/800/0*OqSmqhJrdNtaU7kX.png" /><figcaption><em>Codex successfully invokes dynoconsole_table_list through the authorized read-only MCP connection and discovers 14 DynamoDB tables in us-east-1. The response reports truncated: false, with no item retrieval or data modifications performed.</em></figcaption></figure><h3>Inspecting table metadata</h3><p>I then used dynoconsole_table_describe to inspect a non-production table named DemoTable.</p><p>The tool returned:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*AUH0TzRsgMe3JEVPVs09Gw.png" /></figure><p>The metadata request completed without retrieving the individual items stored in the table.</p><p>These two operations demonstrated that Codex could discover DynamoDB resources through the OAuth-authorized Tables MCP connection.</p><h3>4. Testing profile isolation and unauthorized requests</h3><p>After verifying authorized access, I checked how the connection behaved when the requested access was unavailable.</p><h3>Attempting to access an unexposed profile</h3><p>Although I had multiple AWS connections configured in Tables, only read-only was exposed to the MCP client.</p><p>I asked Codex to list tables using the unexposed admin-profile, without switching to another AWS connection or using the AWS CLI.</p><p>Codex reported that the connected MCP server provided tools only for the single approved profile.</p><p>It did not find an administrative-profile-specific tool, and no admin-profile request was executed.</p><p>This confirmed the profile restriction visible through the connected client. It was not a separate server-side bypass test.</p><h3>Sending an unauthenticated MCP request</h3><p>Next, I tested the MCP endpoint directly, without supplying an OAuth token.</p><p>Using PowerShell, I sent a JSON-RPC tools/list request to the local server.</p><p>The expected behavior was an authentication rejection rather than successful tool discovery.</p><p>The server returned:</p><pre>HTTP Status: 401<br>Result: The remote server returned an error:<br>(401) Unauthorized.</pre><figure><img alt="Windows PowerShell showing a JSON-RPC tools/list request to the local Tables MCP server and an HTTP 401 Unauthorized response." src="https://cdn-images-1.medium.com/max/800/0*oo9TBXrMNPmWcXto.png" /><figcaption><em>An unauthenticated tools/list request was sent directly to the local MCP endpoint using PowerShell. Tables returned HTTP 401 Unauthorized, confirming that the tested endpoint rejected tool discovery without an OAuth token.</em></figcaption></figure><p>This was the main negative security test.</p><p>The endpoint was reachable locally, but the unauthenticated request was rejected instead of returning the available MCP tools.</p><h3>Checking the read-only tool boundary</h3><p>I also inspected the capabilities available under the granted Read only consent.</p><p>Codex reported that the connected server exposed no write-staging or write-execution tools.</p><p>No write operation was attempted during this capability inspection.</p><p>This verified the restricted tools visible to the authorized client, although it did not independently test a write-capable request against the server.</p><h3>5. Verifying recovery after an unauthorized request</h3><p>Finally, I checked whether the rejected request affected an existing authorized connection.</p><p>After the unauthenticated request returned HTTP 401, I returned to the same Codex session and requested DynamoDB table discovery through the approved MCP connection.</p><p>Codex successfully invoked dynoconsole_table_list again.</p><p>The response returned:</p><pre>Tables found: 14<br>Profile: read-only<br>Region: us-east-1<br>truncated: false</pre><figure><img alt="Codex CLI showing successful authorized DynamoDB table discovery after an HTTP 401 rejection, with 14 tables returned." src="https://cdn-images-1.medium.com/max/799/0*tUAcPauXpWOtmUUA.png" /><figcaption><em>After the unauthenticated MCP request was rejected with HTTP 401, Codex successfully retrieved 14 DynamoDB tables through the existing authorized read-only connection without repeating OAuth authorization.</em></figcaption></figure><p>This showed that the unsuccessful request did not prevent the previously authorized client from continuing its permitted read-only workflow.</p><p>I did not need to reconfigure the AWS profile or repeat OAuth authorization to perform the recovery check.</p><h3>Practical takeaways</h3><p>This test was mainly about whether an MCP client could access DynamoDB through an explicitly authorized connection while remaining within the tested access boundaries.</p><p>The important results were:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*L9oUKaVeeZToKY6Mh_ka7A.png" /></figure><p>The testing demonstrated a working local MCP connection with selective profile exposure, OAuth-based client authorization, and rejection of an unauthenticated tool request.</p><p>There were also limits to what this test established. I did not independently validate a server-side profile-isolation bypass attempt, excessive-consent rejection, write staging, or every possible MCP authorization path. Cleanup verification was not part of the completed evidence.</p><p>For me, the useful part of this workflow is being able to connect an AI client to DynamoDB without automatically exposing every configured AWS profile or granting write-capable tools.</p><p>The test also reinforced why successful client connectivity is only a starting point. Verifying the listening interface, inspecting the granted permissions, testing unauthorized requests, and confirming authorized recovery provide much stronger evidence of how the integration behaves.</p><p><strong>Application:</strong> <a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a></p><p><strong>Download:</strong> <a href="https://tables.serverlesscreed.com/downloads">Tables official download page</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d64ce1a706cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simulating DynamoDB Costs in Tables: GSIs, Backups, Streams, and Replicas]]></title>
            <link>https://medium.com/@sidharthhbangera/simulating-dynamodb-costs-in-tables-gsis-backups-streams-and-replicas-10a6a619100f?source=rss-7bc9a0137b9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/10a6a619100f</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Sidharth Bangera]]></dc:creator>
            <pubDate>Sat, 10 Oct 2026 11:06:34 GMT</pubDate>
            <atom:updated>2026-11-11T16:26:54.627Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>When I evaluate a DynamoDB design change, I want to understand how it affects cost before I change the AWS resources themselves.</p><p>In this walkthrough, I use <a href="https://tables.serverlesscreed.com/"><strong>Tables by ServerlessCreed</strong></a>, a DynamoDB GUI with cost analysis and simulation tools, to compare a baseline workload with several what-if changes: two global secondary indexes (GSIs), point-in-time recovery (PITR), backup storage, DynamoDB Streams reads, and two replica Regions.</p><p>The test uses a fixed synthetic workload so that each cost driver can be added separately and compared with the previous state. The dollar values shown here are <strong>simulator estimates</strong>, not actual AWS charges.</p><h3>Prerequisites</h3><p>To reproduce the workflow, you need:</p><ol><li><a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a> installed. The installer is available from the <a href="https://tables.serverlesscreed.com/downloads">official download page</a>.</li><li>Access to a non-production DynamoDB environment.</li><li>A table available in Tables for cost analysis.</li><li>A known Region and a consistent simulation period.</li></ol><p>For this test, I used:</p><ul><li><strong>Tables version:</strong> v3.3.37</li><li><strong>Table:</strong> Export_Source_Test</li><li><strong>Primary Region:</strong> us-east-1</li><li><strong>Simulation period:</strong> 7 days</li><li><strong>Table items:</strong> 100</li><li><strong>Execution:</strong> local what-if simulation</li></ul><p>The simulation changed only estimator inputs; it did not modify those AWS resources.</p><h3>1. Starting from the observed cost baseline</h3><p>I first opened <strong>Cost Estimation</strong> using the table’s observed metrics.</p><p>Reads, writes, and table storage were available, but Streams reads and backup/PITR inputs were incomplete. Tables marked those components as incomplete instead of silently treating them as zero.</p><p>For the 7-day observed view, the current and forecast cost remained below $0.01. I used this only as the observed starting point; the detailed comparisons below use a fixed synthetic baseline.</p><figure><img alt="Tables Cost Optimizer for Export_Source_Test in us-east-1, showing a 7-day observed baseline with current spend below $0.01, forecast below $0.01, write amplification 1.0×, and no material savings found." src="https://cdn-images-1.medium.com/max/1024/1*zM5HNQszaELAEoXThaj-Eg.png" /><figcaption><em>Observed cost baseline for Export_Source_Test. The 7-day Cost Optimizer view shows current and forecast spend below $0.01, write amplification of 1.0×, and no material savings identified before any simulation inputs were added.</em></figcaption></figure><h3>2. Loading a fixed synthetic baseline</h3><p>To make the comparison repeatable, I loaded the built-in synthetic baseline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*NPhUDv_OQqYMMwEppkxrDw.png" /></figure><p>With those inputs, Tables produced these monthly estimates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*q24eVngXyU9DEw359gvJpQ.png" /></figure><p>For the comparisons below, I used <strong>On-Demand</strong> consistently so that each change was measured against the same billing model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YlmN1HAjuxuYDaQQ7G4D1Q.png" /></figure><figure><img alt="Tables Cost Estimation baseline pricing showing On-Demand $13.84, Provisioned $10.47, Reserved 1 year $6.16, and Reserved 3 year $4.33 per month." src="https://cdn-images-1.medium.com/max/1024/1*XRRh4U565WMPjOKJ3Jj7wA.png" /><figcaption><em>Synthetic baseline inputs. I loaded a fixed 7-day workload with 10 GB of storage, 6,048,000 read units, 3,024,000 write units, no Streams activity, no backup storage, PITR disabled, and no simulated GSIs or replicas.</em></figcaption></figure><h3>3. Comparing two simulated GSIs</h3><p>I next added two simulated GSIs with the same write volume but very different read activity.</p><p>For SimulatedGSI1, I used:</p><pre>Read units: 500,000 over 7 days<br>Write units: 3,024,000 over 7 days</pre><p>The On-Demand estimate increased from $13.84 to $22.21/month, an increment of:</p><pre>+$8.37/month</pre><p>The breakdown showed approximately $0.27/month for GSI reads and $8.10/month for GSI writes.</p><p>For SimulatedGSI2, I used:</p><pre>Read units: 5,000 over 7 days<br>Write units: 3,024,000 over 7 days</pre><p>With both GSIs present, the estimate reached $30.31/month. The second GSI added approximately:</p><pre>+$8.10/month</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*91nBMF2KTvzed_n27QPLAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxUOfRKDpP1I4xcx4ma5Ng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iLzMafmSEYgq-awdC7SiNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-l9n7fF9TeQmuDyeDraICA.png" /><figcaption>GSI cost result. With both simulated indexes added, the On-Demand estimate reaches $30.31/month. The similar write volume keeps the maintenance cost of the two GSIs close despite the large difference in read usage.</figcaption></figure><p>This produced the clearest ROI comparison in the test.</p><p>SimulatedGSI2 served <strong>100 times fewer simulated reads</strong> than SimulatedGSI1, but it carried the same write volume and almost the same incremental cost. For this workload, that makes the second GSI the weaker-ROI candidate.</p><p>That does not mean a low-read production index should automatically be removed. It may still support an infrequent but important access pattern. The comparison instead gives a concrete reason to review whether its usage justifies the ongoing cost.</p><h3>4. Adding PITR, backup storage, and Streams reads</h3><p>I then added three more cost drivers one at a time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*iL2dwkOVrJi7tCWzvJnozQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XwcFrKYLnrVRdZWIG7wNlw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w41YvRde-mFlHBalna5AvA.png" /><figcaption><em>PITR cost result. Enabling PITR increased the simulated On-Demand estimate from $30.31 to $32.31/month, an increment of $2.00/month.</em></figcaption></figure><p>I then kept PITR enabled and added 20 GB of backup storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PtAjePWLNOoLk9ehzIGodA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0MC97Xvk-hl4aGyYqlYMcQ.png" /><figcaption><em>Backup storage added. Backup storage was increased to 20 GB while PITR and the existing GSI assumptions remained unchanged.</em></figcaption></figure><p>Finally, I added 1,000,000 Stream GetRecords calls over the same seven-day period. This increased the simulated On-Demand estimate from $34.31 to $35.17/month, an additional $0.86/month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpnHsIBox1A7pagCBo65KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlAXF56yMqSE6BJmVHl5aQ.png" /><figcaption><em>Streams cost result. Adding 1,000,000 Stream GetRecords calls increased the simulated On-Demand estimate from $34.31 to $35.17/month, an increment of $0.86/month.</em></figcaption></figure><p>AWS documents PITR and on-demand backup charges as storage-based. DynamoDB Streams reads are billed in Streams read request units, with each GetRecords call counting as one unit, subject to the applicable AWS pricing and Free Tier conditions.</p><p>The $0.86 value above is the <strong>Tables simulator estimate</strong> for this seven-day Streams input.</p><p>Before adding replicas, the simulated On-Demand total was:</p><pre>$35.17/month</pre><h3>5. Adding two replica Regions</h3><p>I then added two replica Regions:</p><pre>Replica 1: us-east-2<br>Replica 2: us-west-1</pre><p>After adding us-east-2, the On-Demand estimate increased from $35.17 to $61.97/month.</p><pre>Increment: +$26.80/month</pre><p>The breakdown showed $24.30/month for replicated writes and $2.50/month for replicated storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mpk0InOT2dRm1TP7srJu2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0FWReG4hWQ8LX7lH8r2Aw.png" /><figcaption><em>First replica cost result. Adding us-east-2 increased the simulated On-Demand estimate from $35.17 to $61.97/month, an increment of $26.80/month.</em></figcaption></figure><p>After adding us-west-1, the estimate increased again:</p><pre>$61.97/month -&gt; $91.79/month</pre><p>The second replica added:</p><pre>+$29.82/month</pre><p>With both replicas present, Tables showed $51.32/month for replicated writes and $5.30/month for replicated storage. The combined replica increase was therefore:</p><pre>+$56.62/month</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gou4diA0be7fcB6NMuyStA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5lidyH7nwhP9nyvH4gt6Q.png" /><figcaption><em>Two-replica cost result. Adding us-west-1 increased the simulated On-Demand estimate from $61.97 to $91.79/month. The two replicas added $56.62/month in total compared with the pre-replica state.</em></figcaption></figure><p>The replica increments differ because the selected Regions use different regional pricing.</p><p>This behavior is consistent with AWS DynamoDB Global Tables billing, where replicated writes are charged in every Region containing a replica and each replica also carries storage cost.</p><p>Tables also showed the one-year and three-year reserved options as <strong>Not offered</strong> after the Global Table scenario was added. AWS documentation states that reserved capacity cannot be purchased for replicated write capacity units.</p><h3>Practical takeaways</h3><p>The synthetic baseline started at $13.84/month On-Demand. After adding two GSIs, PITR, backup storage, Streams reads, and two replica Regions, the final simulated total reached $91.79/month.</p><p>The component-level comparison was more useful than the final number alone.</p><p>For this workload:</p><ul><li>GSI write activity contributed much more to index cost than the difference in read activity.</li><li>The lower-read GSI had nearly the same maintenance cost as the higher-read GSI because both used the same simulated write volume.</li><li>PITR, backup storage, and Streams reads produced smaller incremental increases.</li><li>The two replica Regions were the largest incremental cost driver in the simulation.</li></ul><p>These results are specific to the assumptions used in this test. Production traffic, item sizes, table class, Free Tier eligibility, discounts, Region-specific pricing, and the business value of individual access patterns can all change the outcome.</p><p>For me, the useful part of this workflow is being able to compare these design choices before changing the infrastructure. The simulation does not replace real usage data or an AWS bill, but it provides a consistent way to test assumptions and identify which cost drivers deserve closer review.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10a6a619100f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running, Saving, and Reopening a Parameterized DynamoDB PartiQL SELECT in Tables]]></title>
            <link>https://medium.com/@sidharthhbangera/running-saving-and-reopening-a-parameterized-dynamodb-partiql-select-in-tables-c861c332312e?source=rss-7bc9a0137b9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c861c332312e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sidharth Bangera]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 18:02:23 GMT</pubDate>
            <atom:updated>2026-10-08T18:33:21.116Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>When I reuse a database query, I want the query structure to stay consistent while the input value can change.</p><p>In this walkthrough, I use <a href="https://tables.serverlesscreed.com/"><strong>Tables by ServerlessCreed</strong></a>, a DynamoDB GUI with a PartiQL Workbench, to run a parameterized DynamoDB PartiQL SELECT, verify the returned items, save the statement, restart the application, reopen the saved query, and verify the result again.</p><p>I also include a simple syntax-error recovery check. The test uses a deterministic fixture, so I know the expected result before execution and can verify the workflow against actual data rather than relying only on a success message.</p><h3>Prerequisites</h3><p>To reproduce the workflow, you need:</p><ol><li><a href="https://tables.serverlesscreed.com/">Tables by ServerlessCreed</a> installed. The installer is available from the <a href="https://tables.serverlesscreed.com/downloads">official download page</a>.</li><li>Access to a non-production DynamoDB environment.</li><li>A table with predictable test data.</li><li>A known expected result that you can compare with the query output.</li></ol><p>For this test, I used a table named table_bulk with 120 deterministic items. The fixture was prepared so that 30 items had:</p><pre><br>Status = BULK_EDITED</pre><p>In this table, OrderId is the partition key and Status is the sort key. Because BULK_EDITED appears on multiple items, Status was a useful field for testing a parameterized query that returned more than one record.</p><h3>1. The query I wanted to reuse</h3><p>Instead of putting the filter value directly into the SQL, I used a named parameter:</p><pre>SELECT *<br>FROM &quot;table_bulk&quot;<br>WHERE &quot;Status&quot; = {{statusValue}};</pre><p>The parameter value for this run was:</p><pre>statusValue = BULK_EDITED</pre><p>This keeps the query structure reusable while letting the value be supplied separately when the statement is run.</p><p>I opened the <strong>PartiQL Workbench</strong>, selected table_bulk, and entered the statement. Autocomplete suggestions were available again in the v3.3.37 build while I was typing.</p><figure><img alt="Tables PartiQL Workbench showing table_bulk selected and the Status attribute suggested by autocomplete" src="https://cdn-images-1.medium.com/max/781/1*r4yLYsOxaehh9SEPZgPSIQ.png" /><figcaption><em>After selecting </em><em>table_bulk, Tables shows the </em><em>Status attribute in autocomplete while I build the PartiQL SELECT.</em></figcaption></figure><h3>2. Supplying the parameter and reviewing the query</h3><p>When I ran the parameterized statement, Tables opened a <strong>Query parameters</strong> dialog and detected statusValue.</p><p>I entered:</p><pre>BULK_EDITED</pre><p>and chose <strong>Load for review</strong>.</p><p>Tables then resolved the parameterized statement to:</p><pre>SELECT *<br>FROM &quot;table_bulk&quot;<br>WHERE &quot;Status&quot; = &#39;BULK_EDITED&#39;;</pre><p>This review step was useful because I could see the exact statement that would be executed before running it.</p><figure><img alt="Tables PartiQL Workbench showing the parameterized SELECT before entering the query parameter." src="https://cdn-images-1.medium.com/max/1024/1*GkgCRb8PUnvnPwsT_RrVQA.png" /></figure><figure><img alt="Tables Query parameters dialog prompting for the statusValue input before loading the query for review." src="https://cdn-images-1.medium.com/max/1024/1*kFskROpM6j6KUmC224wmVQ.png" /></figure><figure><img alt="Tables Query parameters dialog showing statusValue with the value BULK_EDITED." src="https://cdn-images-1.medium.com/max/1024/1*3OrFPlROxmksFl_8xbbWGQ.png" /><figcaption>After running the parameterized statement, Tables prompts for statusValue; I entered BULK_EDITED and loaded the resolved query for review.</figcaption></figure><p><em>After running the parameterized statement, Tables prompts for statusValue; I entered BULK_EDITED and loaded the resolved query for review.</em></p><h3>3. Verifying the first result</h3><p>I then ran the resolved query.</p><p>The expected result was 30 matching items because the fixture had been prepared with exactly 30 items whose Status value was BULK_EDITED.</p><p>Tables returned <strong>30 items</strong>, which matched that expectation.</p><p>This was the important verification point for the first run. I was not relying only on a generic success message; I had a known fixture and an expected result before execution.</p><figure><img alt="Tables PartiQL results showing a successful query with 30 returned BULK_EDITED items." src="https://cdn-images-1.medium.com/max/1024/1*k-IMUovw3G1ChFDmWZ15TA.png" /><figcaption>After running the resolved SELECT, Tables returns the expected 30 items from the deterministic fixture.</figcaption></figure><h3>4. Saving the statement and reopening it after restart</h3><p>Next, I saved the <strong>parameterized template</strong> rather than only the resolved literal query.</p><p>The saved statement retained:</p><pre>SELECT *<br>FROM &quot;table_bulk&quot;<br>WHERE &quot;Status&quot; = {{statusValue}};</pre><p>I then restarted Tables, returned to the PartiQL Workbench, and selected the saved statement from <strong>My statements</strong>.</p><p>The parameterized query itself was still there after restart, but the previous parameter value was not retained. Selecting the saved query opened the <strong>Query parameters</strong> dialog again, so I entered BULK_EDITED a second time.</p><p>That behavior is important: Tables preserved the reusable query template, while the input value had to be supplied again when reopening it.</p><p>After loading the value for review and rerunning the query, Tables again returned the expected 30 items.</p><p>Before and after restart</p><p>Query template<br>First run: {{statusValue}} present<br>Reopened run: {{statusValue}} present</p><p>Parameter value<br>First run: BULK_EDITED<br>Reopened run: BULK_EDITED entered again</p><p>Result<br>First run: 30 items<br>Reopened run: 30 items</p><p>Difference<br>None observed</p><p>I did not export a separate key manifest for this run, so the comparison was based on the deterministic fixture and the matching 30-item result before and after restart.</p><figure><img alt="Tables PartiQL Workbench showing the saved parameterized statement reopened with a Query parameters dialog for statusValue." src="https://cdn-images-1.medium.com/max/1024/1*HCJUd9CPQmTs_Eww67iZ0w.png" /><figcaption>After restarting Tables and reopening the saved statement, the parameterized query remains intact and Tables prompts me to enter statusValue again.</figcaption></figure><h3>5. Recovering from a syntax error</h3><p>I also tested a simple recovery case by deliberately changing the statement to invalid syntax:</p><pre>SELECCC *<br>FROM &quot;table_bulk&quot;<br>WHERE &quot;Status&quot; = &#39;BULK_EDITED&#39;;</pre><p>Tables rejected the statement and displayed:</p><pre>Statement wasn&#39;t well formed, can&#39;t be processed: Expected data manipulation</pre><p>The malformed statement remained visible in the editor, so I could correct it directly instead of recreating it from scratch.</p><figure><img alt="Tables PartiQL Workbench showing a malformed SELECCC statement and the resulting syntax error." src="https://cdn-images-1.medium.com/max/1024/1*lHzZFJefhnUlzdQb7moewQ.png" /><figcaption><em>After running the deliberately malformed SELECCC statement, Tables reports a syntax error while leaving the statement in the editor for correction.</em></figcaption></figure><p>I corrected the query and ran it again. Tables reported a successful execution and returned <strong>30 items</strong>, matching the expected fixture result.</p><p>The query history also kept the failed statement and the successful corrected statement as separate entries during this retest.</p><figure><img alt="Tables PartiQL Workbench showing the corrected SELECT and a successful 30-row result after syntax-error recovery." src="https://cdn-images-1.medium.com/max/1024/1*pEbKAofEwqcXWfNYYUg0Yg.png" /><figcaption><em>After correcting the statement, Tables executes the SELECT successfully and returns the expected 30 matching items.</em></figcaption></figure><h3>Conclusion</h3><p>This test confirmed the full workflow I wanted to verify in Tables: creating a parameterized DynamoDB PartiQL query, supplying the parameter value, checking the returned items, saving the query template, reopening it after restart, and running it again with the same expected result.</p><p>The saved statement retained the {{statusValue}} placeholder, while the parameter value had to be entered again after reopening. With the same BULK_EDITED input and unchanged fixture, both runs returned the expected 30 items.</p><p>The syntax-error check also showed that a malformed statement remained available for correction, and the corrected query returned the expected result afterward.</p><p>For this test, the most useful part of the workflow was keeping the query reusable without hard-coding the input value into the saved template, while still verifying the result against a deterministic fixture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c861c332312e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>