You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Amazon API Gateway REST API](https://aws.amazon.com/api-gateway/pricing/)| First 333 million| $ 3.50|
56
-
|[Amazon Lambda](https://aws.amazon.com/lambda/pricing)| First 6 Billion GB-seconds / month (x86) | $0.0000166667 for every GB-second , $0.20 per 1M requests |
57
-
|[Amazon DynamoDB](https://aws.amazon.com/dynamodb/pricing/on-demand/)| Data Storage| First 25 GB stored per month - free, $0.25 per GB-month thereafter |
58
-
|| Write Request Units (WRU)| $0.625 per million write request units |
59
-
|| Read Request Units (RRU)| $0.125 per million read request units |
45
+
Usage scenario:
46
+
47
+
- 10 users
48
+
- Each user uses 10,000 tokens per day
49
+
- Here is monthly cost breakdown for 30 days of usage
50
+
51
+
52
+
| AWS Service | Assumptions| Calculation| Estimated Monthly Cost (USD)|
1. Make sure you have [Python 3.9](https://www.python.org/) or greater installed on your local system. To install python and create virtual environment follow this article: https://repost.aws/knowledge-center/ec2-linux-python3-boto3 .
64
-
2. Amazon Simple Storage Service (S3) bucket in same AWS account and AWS Region.
75
+
[Python 3.9](https://www.python.org/) or greater
65
76
66
77
### AWS account requirements
67
78
- You must have AWS account to deploy this solution.
68
-
-[Amazon Simple Storage Service(S3) bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html) to stage Lambda function dependency files.
79
+
-[Amazon Simple Storage Service(S3) bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html) to stage Lambda function files and Amazon CloudFormation stack.
69
80
- In your AWS account, select your AWS Region and request access for Foundational Models _Amazon Nova Micro_ and _anthropic.claude-3.5-sonnet_ on Amazon Bedrock.
70
81
71
82

@@ -87,24 +98,16 @@ _You are responsible for the cost of the AWS services used while running this Gu
87
98
- Create a GitHub fine-grained access token for the new repository by following [this guide](https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html). Refer section **Generate a personal access token in your GitHub account**.
88
99
89
100
90
-
2. Download AWS CloudFormation template [guidance-for-genai-assistant.yaml](src/assets/guidance-for-genai-assistant.yaml) from the GitHub repository to your local system.
91
-
92
-
3. Create new [Amazon CloudFromation stack](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html) using above downloaded template.
101
+
2. Download Amazon [Lambda function](src/assets/genai-assistant-lambda-function.zip) and [Amazon Lambda dependencies](src/assets/genai-assistant-backend_layer.zip) and upload to your Amazon S3 bucket in same AWS Region where you will deploy this solution.
102
+
3. Download AWS CloudFormation template [guidance-for-genai-assistant.yaml](guidance-for-genai-assistant.yaml) from the GitHub repository to your local system. Update your Amazon S3 bucket name for Amazon Lambda function code and Lambda Layer.
5. Now to build Amazon Lambda function dependencies, download [requirements.txt](src/assets/requirements.txt) and [create_lambda_dependencies.sh](src/assets/create_lambda_dependencies.sh) files in same folder on your local system. Run
@@ -132,10 +135,6 @@ If the build does not start automatically, trigger it through the Amplify consol
132
135
133
136
5. If you selected to run the frontend locally and connect to the deployed resources in AWS, use the CloudFormation stack outputs to verify deployed resources.
134
137
135
-
6. Navigate to Amazon Lambda console, open lambda function deployed and verify Lambda layer is attached to the function
136
-
137
-

138
-
139
138
140
139
141
140
## Running the Guidance
@@ -223,4 +222,4 @@ This library is licensed under the MIT-0 License. See the LICENSE file.
223
222
224
223
## Contribution
225
224
226
-
This repository is intended for educational purposes and does not accept further contributions. Feel free to utilize and enhance the app based on your own requirements.
225
+
This repository is intended for educational purposes and does not accept further contributions. Feel free to utilize and enhance the app based on your own requirements.
0 commit comments