Skip to content

Conversation

@kakakakakku
Copy link
Contributor

Issue #, if available:
N/A

Description of changes:
Hi😀 Thanks for the useful patterns!

This commit forces the Lambda Python runtime to 3.14, but it seems the update was made without verifying that it actually works.

As a result, I get the following error:

AttributeError: type object 'Runtime' has no attribute 'PYTHON_3_14'. Did you mean: 'PYTHON_3_10'?

So I fixed it.

Check

It works good.

$ curl -X POST \
https://vn0gq00osa.execute-api.ap-northeast-1.amazonaws.com/prod/generateVideo \
-H "Content-Type: application/json" \
-d '{"prompt": "video of a car made up of fruits"}'
{"executionArn": "arn:aws:states:ap-northeast-1:000000000000:execution:VideoGenerationStateMachineA85A8D2F-XZgX5a0yuNti:8a2d580c-046a-47ed-946a-3f46939c9290", "Result":"You will receive an email with pre-Signed URL in 4-5 minutes"}%
stepfunctions_graph (1)
output.mp4

Thank you😀


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -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


![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.

{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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants