generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 8
fix: replace dead CDK test and update stale READMEs; enable strict tsconfig flags in vended CDK project #379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
notgitika
merged 3 commits into
aws:main
from
notgitika:fix/dead-cdk-test-stale-readmes
Feb 23, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,26 @@ | ||
| # Welcome to your CDK TypeScript project | ||
| # AgentCore CDK Project | ||
|
|
||
| This is a blank project for CDK development with TypeScript. | ||
| This CDK project is managed by the AgentCore CLI. It deploys your agent infrastructure into AWS using the `@aws/agentcore-cdk` L3 constructs. | ||
|
|
||
| The `cdk.json` file tells the CDK Toolkit how to execute your app. | ||
| ## Structure | ||
|
|
||
| - `bin/cdk.ts` — Entry point. Reads project configuration from `agentcore/` and creates a stack per deployment target. | ||
| - `lib/cdk-stack.ts` — Defines `AgentCoreStack`, which wraps the `AgentCoreApplication` L3 construct. | ||
| - `test/cdk.test.ts` — Unit tests for stack synthesis. | ||
|
|
||
| ## Useful commands | ||
|
|
||
| - `npm run build` compile typescript to js | ||
| - `npm run watch` watch for changes and compile | ||
| - `npm run test` perform the jest unit tests | ||
| - `npm run build` compile TypeScript to JavaScript | ||
| - `npm run test` run unit tests | ||
| - `npx cdk synth` emit the synthesized CloudFormation template | ||
| - `npx cdk deploy` deploy this stack to your default AWS account/region | ||
| - `npx cdk diff` compare deployed stack with current state | ||
| - `npx cdk synth` emits the synthesized CloudFormation template | ||
|
|
||
| ## Usage | ||
|
|
||
| You typically don't need to interact with this directory directly. The AgentCore CLI handles synthesis and deployment: | ||
|
|
||
| ```bash | ||
| agentcore deploy # synthesizes and deploys via CDK | ||
| agentcore status # checks deployment status | ||
| ``` |
notgitika marked this conversation as resolved.
Show resolved
Hide resolved
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,20 @@ | ||
| // import * as cdk from 'aws-cdk-lib/core'; | ||
| // import { Template } from 'aws-cdk-lib/assertions'; | ||
| // import * as Cdk from '../lib/cdk-stack'; | ||
| import * as cdk from 'aws-cdk-lib'; | ||
| import { Template } from 'aws-cdk-lib/assertions'; | ||
| import { AgentCoreStack } from '../lib/cdk-stack'; | ||
|
|
||
| // example test. To run these tests, uncomment this file along with the | ||
| // example resource in lib/cdk-stack.ts | ||
| test('SQS Queue Created', () => { | ||
| // const app = new cdk.App(); | ||
| // // WHEN | ||
| // const stack = new Cdk.CdkStack(app, 'MyTestStack'); | ||
| // // THEN | ||
| // const template = Template.fromStack(stack); | ||
| // template.hasResourceProperties('AWS::SQS::Queue', { | ||
| // VisibilityTimeout: 300 | ||
| // }); | ||
| test('AgentCoreStack synthesizes with empty spec', () => { | ||
| const app = new cdk.App(); | ||
| const stack = new AgentCoreStack(app, 'TestStack', { | ||
| spec: { | ||
| name: 'testproject', | ||
| version: 1, | ||
| agents: [], | ||
| memories: [], | ||
| credentials: [], | ||
| }, | ||
| }); | ||
| const template = Template.fromStack(stack); | ||
| template.hasOutput('StackNameOutput', { | ||
| Description: 'Name of the CloudFormation Stack', | ||
| }); | ||
| }); |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.