Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banjtheman/chataws
A ChatGPT plugin that allows users to create websites and Lambda functions using ChatGPT
https://github.com/banjtheman/chataws
aws chatgpt chatgpt-plugin chatgpt-plugins openai
Last synced: 14 days ago
JSON representation
A ChatGPT plugin that allows users to create websites and Lambda functions using ChatGPT
- Host: GitHub
- URL: https://github.com/banjtheman/chataws
- Owner: banjtheman
- License: mit
- Created: 2023-04-14T03:01:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-22T14:19:37.000Z (over 1 year ago)
- Last Synced: 2024-10-12T04:54:09.308Z (about 1 month ago)
- Topics: aws, chatgpt, chatgpt-plugin, chatgpt-plugins, openai
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 62
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ChatAWS
Create AWS Lambda functions and websites in Amazon S3 using ChatGPT.https://github.com/banjtheman/chataws/assets/696254/f8c2924d-531a-41a4-a03b-e9c2556c60d1
## Features
- Create AWS Python Lambda functions with or without dependencies.
- Create Static websites using Amazon S3.## Prerequisites
To use this plugin, you will need the following:
- Docker
- An AWS account with access to S3 and Lambda services## Installation
Clone the repository:
```bash
git clone https://github.com/banjtheman/chataws.git
```Change to the repository directory:
```bash
cd chataws
```Build the Docker image:
```bash
docker build . -t aws_chatgpt_plugin
```## Setup
You will need to setup AWS access keys that can do the following.
* Put Object to the designated bucket
* Create Lambda Functions
* Create Lambda Function URLIn addition, you must create a Lambda Role for the app to use, as well as provide an S3 bucket that allows public objects.
## Start Docker
Run the Docker container with the required environment variables:
```bash
docker run -p PORT:PORT \
-e AWS_DEFAULT_REGION= \
-e AWS_ACCESS_KEY_ID= \
-e AWS_SECRET_ACCESS_KEY= \
-e LAMBDA_ROLE= \
-e S3_BUCKET= \
-e PORT=PORT \
aws_chatgpt_plugin
```Once up you can follow the instructions [here](https://platform.openai.com/docs/plugins/getting-started/running-a-plugin) to run the plugin within ChatGPT,
## Example Prompts
You can test the plugin with some of these prompts:
* Use the ChatAWS Plugin to create a Lambda function that generates a random number between a min and a max number input from a user
* Use the ChatAWS Plugin to create a website in that invokes the Lambda Function and displays the random number each time a button is pressed, and lets the user change the min and max values
* Use the ChatAWS Plugin to create a Lambda function that uses the VADER Sentiment Analysis library to perform sentiment analysis on input text
* Use the ChatAWS Plugin to create a website that invokes the sentiment analysis Lambda Function on an input string from a text box.## Example Outputs
## Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please create an issue or submit a pull request.
## License
This project is licensed under the MIT License. See the LICENSE file for details.
## Support
If you need help or have any questions, please feel free to open an issue or contact the maintainer.