The project aims at deploying a sample GenAI app that can be easily customized through Bedrock Prompt Flow and Prompt Management for users to be able to apply prompt engineering techniques to solve for a hackathon problem.
An AWS account - if you don’t have one you can create one at https://aws.amazon.com/ An environment or laptop with (Python 3.12, aws CLI, the SAM CLI) Created and configured a service role for API gateway login at least once in the target aws account and region. https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html Enable model access to the models you are going to use https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html (the template currently uses Claude 3 Haiku)
The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.
To use the SAM CLI, you need the following tools.
- SAM CLI - Install the SAM CLI
- Python 3 installed
- Docker - Install Docker community edition
To build and deploy your application for the first time, run the following in your shell:
sam build
sam deploy --guided
aws s3 copy static/index.html s3://[yourS3bucket]sam delete --stack-name "yourstackname"See the AWS SAM developer guide for an introduction to SAM specification, the SAM CLI, and serverless application concepts.
Next, you can use AWS Serverless Application Repository to deploy ready to use Apps that go beyond hello world samples and learn how authors developed their applications: AWS Serverless Application Repository main page
