<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dumb Dev</title>
    <description>The latest articles on DEV Community by Dumb Dev (@dumb_dev_1803).</description>
    <link>https://dev.to/dumb_dev_1803</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3919442%2F53c04c20-f59c-46fb-817a-88db09c3ed61.png</url>
      <title>DEV Community: Dumb Dev</title>
      <link>https://dev.to/dumb_dev_1803</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dumb_dev_1803"/>
    <language>en</language>
    <item>
      <title>Help with Bedrock Agentcore Gateway Target setup</title>
      <dc:creator>Dumb Dev</dc:creator>
      <pubDate>Fri, 08 May 2026 07:20:25 +0000</pubDate>
      <link>https://dev.to/dumb_dev_1803/help-with-bedrock-agentcore-gateway-target-setup-3lb5</link>
      <guid>https://dev.to/dumb_dev_1803/help-with-bedrock-agentcore-gateway-target-setup-3lb5</guid>
      <description>&lt;p&gt;Hey all,&lt;/p&gt;

&lt;p&gt;TITLE: Is AWS Bedrock AgentCore Gateway officially compatible with Durable Execution Lambda handlers?&lt;/p&gt;

&lt;p&gt;I’m trying to use an AWS Durable Lambda function (&lt;a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html&lt;/a&gt;, &lt;a href="https://github.com/aws/aws-durable-execution-sdk-python" rel="noopener noreferrer"&gt;https://github.com/aws/aws-durable-execution-sdk-python&lt;/a&gt;) as a target for AWS Bedrock AgentCore Gateway, but the target registration fails.&lt;/p&gt;

&lt;p&gt;Error during “Update Target”:&lt;/p&gt;

&lt;p&gt;Update Target operation failed for client-actions:&lt;br&gt;
There was an error creating the target(s). ValidationException: Invalid request to Lambda function arn:xxxxx &lt;br&gt;
Invalid parameter or request content. Check your request parameters and retry&lt;/p&gt;

&lt;p&gt;My observations:&lt;/p&gt;

&lt;p&gt;A plain Lambda function works successfully as a Gateway target.&lt;br&gt;
A different plain durable Lambda fails if attempted to add as a Gateway target.&lt;br&gt;
The failure happens during Gateway target validation/update, before actual runtime invocation.&lt;/p&gt;

&lt;p&gt;Minimal reproducible example:&lt;/p&gt;

&lt;p&gt;from aws_durable_execution_sdk_python.config import Duration&lt;br&gt;
from aws_durable_execution_sdk_python.context import DurableContext, StepContext, durable_step&lt;br&gt;
from aws_durable_execution_sdk_python.execution import durable_execution&lt;/p&gt;

&lt;p&gt;@durable_execution&lt;br&gt;
def lambda_handler(event, context) -&amp;gt; dict:&lt;br&gt;
    return {&lt;br&gt;
        "statusCode": 200,&lt;br&gt;
        "body": {&lt;br&gt;
            "responses": [&lt;br&gt;
                {&lt;br&gt;
                    "answer": "Working",&lt;br&gt;
                    "lang": "EN-US",&lt;br&gt;
                    "options": ["1"]&lt;br&gt;
                }&lt;br&gt;
            ],&lt;br&gt;
            "response_mode": "single",&lt;br&gt;
            "type": "success"&lt;br&gt;
        },&lt;br&gt;
        "provider_type": "sample_provider",&lt;br&gt;
        "bypass_send_message": False&lt;br&gt;
    }&lt;/p&gt;

&lt;p&gt;AWS Region: us-west-2&lt;br&gt;
Runtime: Python 3.x&lt;br&gt;
Using AWS Durable Execution SDK for Python&lt;br&gt;
AgentCore Gateway target type: Lambda&lt;/p&gt;

&lt;p&gt;I found the Git repo example suggesting durable Lambda handlers can work with AgentCore Gateway as target, but I could not find official AWS documentation confirming whether this integration is supported.&lt;br&gt;
Source: &lt;a href="https://github.com/kpx-dev/strands-agentcore-async-demo" rel="noopener noreferrer"&gt;https://github.com/kpx-dev/strands-agentcore-async-demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Questions:&lt;/p&gt;

&lt;p&gt;Are durable lambda handlers decorated with @durable_execution officially supported as AgentCore Gateway targets?&lt;br&gt;
Does Gateway validation require a specific request/response contract for durable handlers?&lt;/p&gt;

&lt;p&gt;Would appreciate any help or examples being pointed out.&lt;/p&gt;

&lt;p&gt;Thanks much in advance!&lt;/p&gt;

</description>
      <category>agents</category>
      <category>aws</category>
      <category>python</category>
      <category>serverless</category>
    </item>
  </channel>
</rss>
