amazon-bedrock-samples
amazon-bedrock-samples copied to clipboard
Enhanced Text-to-SQL CDK Agent with improved cross-environment compatibility
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
- Pedram Jahangiri @iut62elec