From 93c85e31a5c9d272e5cea0f1a30fcca958e33478 Mon Sep 17 00:00:00 2001 From: Stan Fan Date: Wed, 5 Jun 2024 15:53:38 +1000 Subject: [PATCH 1/2] fix command in README.md\ remove the email address --- serverless-bedrock-video-content-summary/README.md | 4 ++-- .../typescript/bin/bedrock-workflow.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/serverless-bedrock-video-content-summary/README.md b/serverless-bedrock-video-content-summary/README.md index e931dc5b..84432ec7 100644 --- a/serverless-bedrock-video-content-summary/README.md +++ b/serverless-bedrock-video-content-summary/README.md @@ -36,7 +36,7 @@ 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 @@ -45,7 +45,7 @@ Additionally, there's an error-handling component. An AWS Lambda function handle ``` 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 + pip install -r requirements.txt --target resources/layers/bedrock-layer/python ``` 6. From the command line, use npm to install dependencies and run the build process for the Lambda functions. 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 }); From 890cdf73bc02ab94389ae2caf95f2dfcfd1084f0 Mon Sep 17 00:00:00 2001 From: Stan Fan Date: Tue, 4 Feb 2025 09:36:05 +1100 Subject: [PATCH 2/2] fix the readme and remove requirement.txt --- serverless-bedrock-video-content-summary/README.md | 9 +++------ .../typescript/requirements.txt | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 serverless-bedrock-video-content-summary/typescript/requirements.txt diff --git a/serverless-bedrock-video-content-summary/README.md b/serverless-bedrock-video-content-summary/README.md index 84432ec7..febf9fbe 100644 --- a/serverless-bedrock-video-content-summary/README.md +++ b/serverless-bedrock-video-content-summary/README.md @@ -43,18 +43,15 @@ Additionally, there's an error-handling component. An AWS Lambda function handle 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 resources/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/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