Skip to content

fix: add missing tsconfig.json for VPC resources CDK tutorial (#1245)#1400

Open
madhununna wants to merge 1 commit intoawslabs:mainfrom
madhununna:fix/issue-1245-add-tsconfig-vpc-resources
Open

fix: add missing tsconfig.json for VPC resources CDK tutorial (#1245)#1400
madhununna wants to merge 1 commit intoawslabs:mainfrom
madhununna:fix/issue-1245-add-tsconfig-vpc-resources

Conversation

@madhununna
Copy link
Copy Markdown

Summary

Adds the missing tsconfig.json in 01-tutorials/01-AgentCore-runtime/03-advanced-concepts/07-connect-to-vpc-resources/.

Context

Issue #1245 reported that tsconfig.json is missing from this tutorial. The directory ships a TypeScript CDK project:

  • bin/app.ts, lib/vpc-fargate-stack.ts (TypeScript sources)
  • cdk.json with "app": "npx ts-node --prefer-ts-exts bin/app.ts"
  • package.json with "build": "tsc" and devDependencies: typescript, ts-node, aws-cdk

Without tsconfig.json, npm run build, cdk synth, and cdk deploy all fail with TypeScript compiler errors.

Fix

Added a standard CDK TypeScript tsconfig.json (the same template generated by cdk init app --language typescript).

Verification

Ran locally in the tutorial directory:

npm install
./node_modules/.bin/tsc --noEmit    # exits 0, no errors
./node_modules/.bin/cdk synth       # produces valid CloudFormation template

Fixes #1245

The 03-advanced-concepts/07-connect-to-vpc-resources tutorial ships a
TypeScript CDK project (bin/app.ts, lib/vpc-fargate-stack.ts, cdk.json
using ts-node) but was missing tsconfig.json, so 'npm run build' and
'cdk synth' failed with TypeScript compiler errors.

Adds a standard CDK TypeScript tsconfig (matches 'cdk init app --language
typescript' template) — verified with:

  npm install && ./node_modules/.bin/tsc --noEmit   # exits 0
  ./node_modules/.bin/cdk synth                     # produces valid CFN

Fixes awslabs#1245
@github-actions github-actions Bot added 01-tutorials 01-tutorials 01-AgentCore-runtime 01-tutorials/01-AgentCore-runtime labels Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

01-AgentCore-runtime 01-tutorials/01-AgentCore-runtime 01-tutorials 01-tutorials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

01-tutorials - [Bug] Missing tsconfig in 03-advanced-concepts/07-connect-to-vpc-resources

1 participant