- Node.js and npm installed
- AWS CLI installed and configured
1. Clone the repository and navigate into the project directory:
git clone https://github.com/DennisTraub/bedrock-converse-lambda-ts.git
cd bedrock-converse-lambda-ts
1. Install the necessary dependencies:
npm install
2. Build the Lambda function code:
npm run build
1. Zip the Lambda function code:
zip -r function.zip .
1. Zip the Lambda function code with 7z:
7z a function.zip .
1. Run the deployment script, :
./deploy.sh
2. Check the output of the deployment script and note down the function name
1. Invoke the Lambda function using the AWS CLI:
aws lambda invoke output.txt --function-name <your-function-name>
2. Check the output:
cat output.txt