@@ -13,20 +13,32 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/.prettierrc should ma
1313` ;
1414
1515exports [` Assets Directory Snapshots > CDK assets > cdk/cdk/README.md should match snapshot 1` ] = `
16- "# Welcome to your CDK TypeScript project
16+ "# AgentCore CDK Project
1717
18- This is a blank project for CDK development with TypeScript .
18+ This CDK project is managed by the AgentCore CLI. It deploys your agent infrastructure into AWS using the \` @aws/agentcore-cdk \` L3 constructs .
1919
20- The \` cdk.json\` file tells the CDK Toolkit how to execute your app.
20+ ## Structure
21+
22+ - \` bin/cdk.ts\` — Entry point. Reads project configuration from \` agentcore/\` and creates a stack per deployment target.
23+ - \` lib/cdk-stack.ts\` — Defines \` AgentCoreStack\` , which wraps the \` AgentCoreApplication\` L3 construct.
24+ - \` test/cdk.test.ts\` — Unit tests for stack synthesis.
2125
2226## Useful commands
2327
24- - \` npm run build\` compile typescript to js
25- - \` npm run watch \` watch for changes and compile
26- - \` npm run test \` perform the jest unit tests
28+ - \` npm run build\` compile TypeScript to JavaScript
29+ - \` npm run test \` run unit tests
30+ - \` npx cdk synth \` emit the synthesized CloudFormation template
2731- \` npx cdk deploy\` deploy this stack to your default AWS account/region
2832- \` npx cdk diff\` compare deployed stack with current state
29- - \` npx cdk synth\` emits the synthesized CloudFormation template
33+
34+ ## Usage
35+
36+ You typically don't need to interact with this directory directly. The AgentCore CLI handles synthesis and deployment:
37+
38+ \`\`\` bash
39+ agentcore deploy # synthesizes and deploys via CDK
40+ agentcore status # checks deployment status
41+ \`\`\`
3042"
3143` ;
3244
@@ -289,21 +301,25 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/package.json should m
289301` ;
290302
291303exports [` Assets Directory Snapshots > CDK assets > cdk/cdk/test/cdk.test.ts should match snapshot 1` ] = `
292- "// import * as cdk from 'aws-cdk-lib/core';
293- // import { Template } from 'aws-cdk-lib/assertions';
294- // import * as Cdk from '../lib/cdk-stack';
295-
296- // example test. To run these tests, uncomment this file along with the
297- // example resource in lib/cdk-stack.ts
298- test('SQS Queue Created', () => {
299- // const app = new cdk.App();
300- // // WHEN
301- // const stack = new Cdk.CdkStack(app, 'MyTestStack');
302- // // THEN
303- // const template = Template.fromStack(stack);
304- // template.hasResourceProperties('AWS::SQS::Queue', {
305- // VisibilityTimeout: 300
306- // });
304+ "import * as cdk from 'aws-cdk-lib';
305+ import { Template } from 'aws-cdk-lib/assertions';
306+ import { AgentCoreStack } from '../lib/cdk-stack';
307+
308+ test('AgentCoreStack synthesizes with empty spec', () => {
309+ const app = new cdk .App ();
310+ const stack = new AgentCoreStack (app , ' TestStack' , {
311+ spec: {
312+ name: ' testproject' ,
313+ version: 1 ,
314+ agents: [],
315+ memories: [],
316+ credentials: [],
317+ },
318+ });
319+ const template = Template .fromStack (stack );
320+ template .hasOutput (' StackNameOutput' , {
321+ Description: ' Name of the CloudFormation Stack' ,
322+ });
307323} );
308324"
309325` ;
@@ -2342,7 +2358,7 @@ packages = ["."]
23422358` ;
23432359
23442360exports [` Assets Directory Snapshots > Python framework assets > python/python/strands/base/README.md should match snapshot 1` ] = `
2345- "This is a project generated by the agentcore create basic CLI tool!
2361+ "This is a project generated by the agentcore create CLI tool!
23462362
23472363# Layout
23482364
0 commit comments