Skip to content

About

Template for producing agents with AWS AgentCore

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Backstage AWS AgentCore Template

This repository is a Backstage scaffolder template for creating a new AI agent hosted on Amazon Bedrock AgentCore Runtime. It generates a repository, publishes it to GitHub and registers it in the catalog.

What this template creates

  • A Python agent built with the Strands Agents SDK, with a system prompt, input checks, structured request logging and unit tests
  • An AWS SAM template.yaml with an AgentCore Runtime and a least-privilege IAM execution role
  • Optionally, an AgentCore Memory so the agent remembers a conversation
  • A Dockerfile for the agent's Linux arm64 container image
  • GitHub Actions workflows that test the agent, build and push the image to ECR, and deploy with AWS SAM
  • A project handbook under docs/, published through Backstage TechDocs
  • Backstage catalog metadata in catalog-info.yaml
  • Optionally, Spec Kit initialized for Claude, Copilot or Codex

Repository layout

  • template.yaml: the Backstage scaffolder template definition
  • skeleton/: files copied into the generated project
  • pipeline/: GitHub Actions workflows and the ECR repository policy used by the generated project

Files under skeleton/ and pipeline/ are rendered by the scaffolder, so ${{ values.* }} and {% ... %} are template syntax. GitHub Actions expressions in the workflows are wrapped in {% raw %}.

Typical use in Backstage

The template asks for:

  • component name, description, owning group, domain, system, environment and AWS account
  • the agent's instructions, its Bedrock model, the Python version, and whether it remembers conversations
  • whether to initialize Spec Kit, and for which coding agent
  • whether to launch a Copilot cloud agent task

It then fetches the catalog entities, copies the skeleton and the pipeline, initializes Spec Kit, publishes the repository, registers the component and launches the Copilot task.

Requirements

  • Backstage with the Scaffolder plugin, the GitHub publisher, and the github:speckit:* and github:copilot:agent:launch actions
  • Catalog entities for domain, system, owner, environment and cloud account
  • The organization secrets AWS_CICD_ACCOUNT_ID and AWS_ECR_REPO available to generated repositories
  • In the deployment account: access to the chosen Bedrock model, and CloudWatch Transaction Search enabled for traces

Origin

The generated project generalizes Bill-GN, using its specifications and its plan for the core agent. The image build follows the container workflows in backstage-aws-sam-ecs-template.

Not included

A Slack or API front end, reference knowledge, tools, multi-agent orchestration, and Datadog dashboards or alarms are not generated.

About

Template for producing agents with AWS AgentCore

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages