diff --git a/serverless-bedrock-video-content-summary/README.md b/serverless-bedrock-video-content-summary/README.md index e931dc5b..febf9fbe 100644 --- a/serverless-bedrock-video-content-summary/README.md +++ b/serverless-bedrock-video-content-summary/README.md @@ -36,25 +36,22 @@ Additionally, there's an error-handling component. An AWS Lambda function handle cd serverless-bedrock-video-content-summary/typescript ``` -4. Modify the input of `sharedResourcesStack`, replace the `subEmail` variable with your own Email address: +4. Modify the input of `sharedResourcesStack` in file `./typescript/bin/bedrock-workflow.ts`, replace the `subEmail` variable with your own Email address: ```typescript const sharedResourcesStack = new SharedResourcesStack(app, 'SharedResourcesStack', { subEmail: 'you@email.address', // <- replace with your Email env: env }); ``` -5. To create a layer for lambda function to invoke Bedrock service, you will firstly need to run `pip` command to install `boto3==1.28.57` to directry `typescript/resource/layers/bedrock-layer/python` with command below: - ```bash - pip install -r requirements.txt --target resource/layers/bedrock-layer/python - ``` -6. From the command line, use npm to install dependencies and run the build process for the Lambda functions. + +5. From the command line, use npm to install dependencies and run the build process for the Lambda functions. ```bash npm install npm run build ``` -7. From the command line, use CDK to deploy the AWS resources for the workflow as specified in the TypeScript files under `/lib` and `/bin/vod-workflow.ts`: +6. From the command line, use CDK to deploy the AWS resources for the workflow as specified in the TypeScript files under `/lib` and `/bin/vod-workflow.ts`: ```bash cdk deploy --all diff --git a/serverless-bedrock-video-content-summary/typescript/bin/bedrock-workflow.ts b/serverless-bedrock-video-content-summary/typescript/bin/bedrock-workflow.ts index 69727917..0bcd4d03 100644 --- a/serverless-bedrock-video-content-summary/typescript/bin/bedrock-workflow.ts +++ b/serverless-bedrock-video-content-summary/typescript/bin/bedrock-workflow.ts @@ -14,8 +14,7 @@ const env = { }; const sharedResourcesStack = new SharedResourcesStack(app, 'SharedResourcesStack', { - // subEmail: 'you@email.address', - subEmail: 'fanhongy@amazon.com', + subEmail: 'you@email.address', env: env }); diff --git a/serverless-bedrock-video-content-summary/typescript/requirements.txt b/serverless-bedrock-video-content-summary/typescript/requirements.txt deleted file mode 100644 index 2e256daa..00000000 --- a/serverless-bedrock-video-content-summary/typescript/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -boto3==1.28.57 \ No newline at end of file