Skip to content

Conversation

@inoue22
Copy link

@inoue22 inoue22 commented Jan 2, 2026

Issue #, if available:

Resolve issue #11

Description of changes:

Prerequisites

This PR depends on #10. Please merge #10 before merging this PR.

Description

This PR migrates the AgentCore Runtime deployment strategy from ECR + CodeBuild container-based deployment to direct code deployment using S3 ZIP upload.

According to AWS documentation and AWS Blogs article, direct code deployment is now the recommended approach for deploying AgentCore Runtime.

This method simplifies the deployment process by eliminating the need for Docker image builds while maintaining full compatibility with the AgentCore Runtime requirements.

Changes

AWS CDK

  • AgentCoreInfraStack: Remove ECR repository, CodeBuild project and associated IAM permissions; simplify to S3 bucket and IAM role only
  • AgentCoreRuntime: Replace containerConfiguration with codeConfiguration for direct ZIP deployment; remove CodeBuild trigger and build waiter Lambda

AgentCore Runtime

  • Delete Dockerfile (no longer needed for direct code deployment)
  • Update requirements.txt (removed uv as container-only dependency)

Deployment Scripts

  • Add ARM64 package download using pip3 download
  • Implement deployment package creation workflow
  • Add S3 upload step for deployment package to code bucket
  • Add prerequisite checks for pip3, zip, unzip, and aws CLI commands

New Files

  • Add undeploy-all.sh and undeploy-all.ps1 for stack cleanup

Removed Files

  • cdk/lib/build-trigger-stack.ts
  • cdk/lib/build-waiter-function.ts
  • agent/Dockerfile

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant