From ce01e1a5ffb88c49c503fc3e5a31a4c19e99ba31 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 23:22:14 -0400 Subject: [PATCH 1/4] list-agent-runtime-endpoints --- fix.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 fix.sh diff --git a/fix.sh b/fix.sh new file mode 100755 index 0000000..3ee494e --- /dev/null +++ b/fix.sh @@ -0,0 +1,10 @@ +cd /Users/rtransfer/Documents/cloudquery-mcp-agentcore + +# Fix deploy.sh Step 5b fallback +sed -i '' \ + 's/list-agent-runtime-endpoints \\/get-agent-runtime-endpoint \\/' \ + deploy.sh + +sed -i '' \ + 's/--query "agentRuntimeEndpoints\[0\]\.liveVersion"/--name "default" --query "liveVersion"/' \ + deploy.sh From 7b8ea163d312b5af7cb3d3b338a3ed4429b68fb3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 23:23:00 -0400 Subject: [PATCH 2/4] Delete fix.sh --- fix.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100755 fix.sh diff --git a/fix.sh b/fix.sh deleted file mode 100755 index 3ee494e..0000000 --- a/fix.sh +++ /dev/null @@ -1,10 +0,0 @@ -cd /Users/rtransfer/Documents/cloudquery-mcp-agentcore - -# Fix deploy.sh Step 5b fallback -sed -i '' \ - 's/list-agent-runtime-endpoints \\/get-agent-runtime-endpoint \\/' \ - deploy.sh - -sed -i '' \ - 's/--query "agentRuntimeEndpoints\[0\]\.liveVersion"/--name "default" --query "liveVersion"/' \ - deploy.sh From 2bfe0cee272ad91d116c643879d23b9772790563 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 23:27:04 -0400 Subject: [PATCH 3/4] Update Deploy.sh --- deploy.sh | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/deploy.sh b/deploy.sh index ab3357e..b80617a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -87,28 +87,30 @@ echo "[5a/6] Creating AgentCore Runtime..." RUNTIME_ID=$(aws bedrock-agentcore-control create-agent-runtime \ --agent-runtime-name "${AGENTCORE_ENDPOINT_NAME}" \ --description "CloudQuery MCP Server - PostgreSQL mode" \ - --runtime-configuration "{ - \"container\": { - \"imageUri\": \"${ECR_IMAGE_URI}\", - \"executionRoleArn\": \"${ROLE_ARN}\", - \"environment\": [ - {\"name\": \"AWS_REGION\", \"value\": \"${REGION}\"}, - {\"name\": \"HTTP_ADDRESS\", \"value\": \":8080\"}, - {\"name\": \"CQAPI_LOG_LEVEL\", \"value\": \"info\"}, - {\"name\": \"POSTGRES_SECRET_ARN\", \"value\": \"${POSTGRES_SECRET_ARN}\"} - ], - \"port\": 8080 + --role-arn "${ROLE_ARN}" \ + --agent-runtime-artifact "{ + \"containerConfiguration\": { + \"containerUri\": \"${ECR_IMAGE_URI}\" } }" \ - --network-configuration "{\"allowInternetAccess\": \"DISABLED\"}" \ - --region "${REGION}" \ - --query agentRuntimeId --output text 2>/dev/null \ - || aws bedrock-agentcore-control get-agent-runtime \ - --agent-runtime-name "${AGENTCORE_ENDPOINT_NAME}" \ + --network-configuration "{ + \"networkMode\": \"PUBLIC\" + }" \ + --protocol-configuration "{ + \"serverProtocol\": \"MCP\" + }" \ + --environment-variables "{ + \"AWS_REGION\": \"${REGION}\", + \"HTTP_ADDRESS\": \":8080\", + \"CQAPI_LOG_LEVEL\": \"info\", + \"POSTGRES_SECRET_ARN\": \"${POSTGRES_SECRET_ARN}\" + }" \ --region "${REGION}" \ - --query agentRuntimeId --output text) + --query agentRuntimeId \ + --output text) echo " ✓ Runtime ID: ${RUNTIME_ID}" + # ── Step 5b: Create AgentCore Runtime Endpoint ─────────────────────────────── echo "[5b/6] Creating AgentCore Runtime Endpoint..." ENDPOINT_URL=$(aws bedrock-agentcore-control create-agent-runtime-endpoint \ From a7b42f6bb1f0c77a4ef165a70a624b3ec5007687 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 23:28:51 -0400 Subject: [PATCH 4/4] Update Deploy.sh --- deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index b80617a..4f6999c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -82,7 +82,7 @@ aws iam put-role-policy \ --policy-document "${PERMS}" echo " ✓ ${ROLE_ARN}" -# ── Step 5a: Create AgentCore Runtime ──────────────────────────────────────── +# 5a. Create AgentCore Runtime echo "[5a/6] Creating AgentCore Runtime..." RUNTIME_ID=$(aws bedrock-agentcore-control create-agent-runtime \ --agent-runtime-name "${AGENTCORE_ENDPOINT_NAME}" \ @@ -111,13 +111,14 @@ RUNTIME_ID=$(aws bedrock-agentcore-control create-agent-runtime \ echo " ✓ Runtime ID: ${RUNTIME_ID}" -# ── Step 5b: Create AgentCore Runtime Endpoint ─────────────────────────────── +# 5b. Create AgentCore Runtime Endpoint echo "[5b/6] Creating AgentCore Runtime Endpoint..." ENDPOINT_URL=$(aws bedrock-agentcore-control create-agent-runtime-endpoint \ --agent-runtime-id "${RUNTIME_ID}" \ --name "default" \ --region "${REGION}" \ - --query "liveVersion" --output text) + --query "liveVersion" \ + --output text) echo " ✓ Endpoint URL: ${ENDPOINT_URL}" # Write resolved developer configs