amazon-bedrock-samples icon indicating copy to clipboard operation
amazon-bedrock-samples copied to clipboard

Enhanced Text-to-SQL CDK Agent with improved cross-environment compatibility

Open iut62elec opened this issue 8 months ago • 0 comments

This PR enhances the Text-to-SQL Bedrock Agent CDK Enhanced with improved cross-environment compatibility and better dependency management.

Changes Made

  • requirements.txt: Added version pinning for all packages to ensure consistency across environments
  • package.json: Updated CDK versions from 2.101.1 to 2.200.0+ and added proper package metadata
  • setup.sh: Enhanced with error handling, Python version validation, and Node.js 20 LTS support
  • .nvmrc: Added for consistent Node.js version across environments
  • runtime.txt: Added for Python version specification

Key Improvements

  • ✅ Better version consistency across different deployment environments
  • ✅ Enhanced error handling in setup script
  • ✅ Python version validation before proceeding with setup
  • ✅ Updated to Node.js 20 LTS for better stability
  • ✅ Clear logging and user guidance throughout setup process

Testing

  • Tested successfully in the original development environment
  • All CDK deployment functionality preserved
  • Enhanced compatibility for new environments

Author

iut62elec avatar Jun 13 '25 15:06 iut62elec