This is a small project that uses CDK and Rust to build a Lambda function that will send a prompt to ChatGPT and will return the received reply to the user.
- Rust
- AWS CDK
- Docker
.
├── cdk
│ ├── README.md
│ ├── bin
│ ├── cdk.json
│ ├── jest.config.js
│ ├── lib
│ ├── package.json
│ ├── tsconfig.json
│ └── yarn.lock
└── lambda-code
├── Cargo.lock
├── Cargo.toml
├── build.sh
├── src
└── target
We have the cdk
folder containing the CDK project that will allow us deploy the Rust Lambda function and a Secret parameter where to store the ChatGPT APIKey.
And we also have the lambda-code
folder that contains the Rust application to be deployed in the Lambda function.