feat(templates): support Container builds in the strands-http-python template - #6
Closed
Hweinstock wants to merge 2 commits into
Closed
feat(templates): support Container builds in the strands-http-python template#6Hweinstock wants to merge 2 commits into
Hweinstock wants to merge 2 commits into
Conversation
Hweinstockforce-pushed
the
feat/strands-container-support
branch
from
August 28, 2026 16:48
3e01ef0 to
e44ddc1Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
strands-http-pythondoesn't support Container builds —create --template strands-python --build Containererrors with "the strands template only supports CodeZip builds", and the template ships noDockerfile.Changes
Built on the merged
refactor(which already has the flag-override shortcuts aws#2130,fromAssetSourcefiltering aws#2116, and the.templatestrip aws#2139):fromAssetSourcefilter to includeDockerfile/.dockerignoreonly whenbuild === "Container"(alongside the existing memory filter).enableOtel/entrypointto the render context.Dockerfile.template+dockerignore.templateto the template. TheDockerfilemirrors mainline'scontainer/python/Dockerfile(templated{{entrypoint}}/{{#if enableOtel}}), minus the harness-specific git-skills install block.Verification
Built via
bun run compile:linux-x64;bun test src/→ 2221 pass.POST /invocationslocally.project deploy) and invoked (aws bedrock-agentcore invoke-agent-runtime) →200, real response.project deploy→CREATE_COMPLETEinus-east-1) and invoked →200, real response. (A region whose CDK bootstrap uses a scoped exec role lackingkms:CreateGrantwill fail ECR-repo creation — an account/bootstrap config matter, not a template/code issue.)Reproduce