Skip to content

Remove unnecessary lambda layer #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions serverless-bedrock-video-content-summary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]', // <- 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const env = {
};

const sharedResourcesStack = new SharedResourcesStack(app, 'SharedResourcesStack', {
// subEmail: '[email protected]',
subEmail: '[email protected]',
subEmail: '[email protected]',
env: env
});

Expand Down

This file was deleted.