Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.62 KB

bonus-track.md

File metadata and controls

50 lines (40 loc) · 1.62 KB

ChatGPT Lambda function with Rust and CDK

Return to index

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.

Requirements

  • Rust
  • AWS CDK
  • Docker

Content

.
├── 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.

References