Skip to content
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
40 changes: 7 additions & 33 deletions apigw-stepfunctions-lambda-bedrock-s3-sns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,6 @@ Important: this application uses various AWS services and there are costs associ
* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured
* [Git Installed](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [AWS Cloud Development Kit](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html) installed
* [Amazon Bedrock Nova Reel Access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html#add-model-access)

## Amazon Bedrock setup instructions
You must request access to Amazon Nova Reel model before you can use it. If you try to use the model (with the API or console) before you have requested access to it, you receive an error message. For more information, see [Model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).

1. In the AWS console, select the region from which you want to access Amazon Bedrock. At the time of writing, Amazon Bedrock is available in us-east-1 (N. Virginia) and us-west-2 (Oregon) regions.

![Region Selection](bedrock_setup/region-selection.png)

1. Find **Amazon Bedrock** by searching in the AWS console.

![Bedrock Search](bedrock_setup/bedrock-search.png)

1. Expand the side menu.

![Bedrock Expand Menu](bedrock_setup/bedrock-menu-expand.png)

1. From the side menu, select **Model access**.

![Model Access](bedrock_setup/model-access-link.png)

1. Select the **Edit** button.

![Model Access View](bedrock_setup/model-access-view.png)

6. Use the checkboxes to select the models you wish to enable. Review the applicable EULAs as needed. Click **Save changes** to activate the models in your account. For this pattern we only need Nova Reel / model id: amazon.nova-reel-v1:0.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


## Deployment Instructions

Expand Down Expand Up @@ -100,12 +74,12 @@ We'll be making requests to the *generateVideo* endpoint with a desired prompt.

Follow the example below and replace `{your-api-url}` with your api url from step 9.

```
curl -X POST \
{your-api-url}/generateVideo \
-H "Content-Type: application/json" \
-d '{"prompt": "video of a car made up of fruits"}'
```
```sh
curl -X POST \
{your-api-url}/generateVideo \
-H "Content-Type: application/json" \
-d '{"prompt": "video of a car made up of fruits"}'
```
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: Format doc.

Image


## Review results

Expand All @@ -124,4 +98,4 @@ Within 4-5 minutes, you would be receiving an email with Amazon S3 Pre-Signed UR
----
Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0
SPDX-License-Identifier: MIT-0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion apigw-stepfunctions-lambda-bedrock-s3-sns/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
aws-cdk-lib==2.171.1
aws-cdk-lib==2.226.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: I updated to latest version. Python 3.14 was supported since aws-cdk-lib v2.222.0 or later.
https://github.com/aws/aws-cdk/releases/tag/v2.222.0

constructs>=10.0.0,<11.0.0