This is a VSCode extension built to generate code as a developer tool. It utilizes Amazon Bedrock with Claude 3 as its underlying foundational model.
⚠️ Warning: This extension may incur costs associated with the usage of AWS services and Anthropic's Claude 3 model. It is recommended to set up AWS Cost and Usage Reports and/or Billing Alerts/Alarms before running this extension to monitor and control your spending.
⚠️ Security Note: By default, the Application Load Balancer (ALB) deployed by the CloudFormation template accepts traffic from 0.0.0.0/0 (any IP address). It is advisable to review and restrict the ALB security group rules to allow only trusted sources if required.
Prerequisites
Enable Claude 3 Sonnet Access in Amazon Bedrock within your AWS environment.
Installation
Download the cfTemplateBedrockCoder.yaml file from this GitHub repository and deploy the CloudFormation template in your AWS environment.
Locate the ALB endpoint under the outputs section.
Install Bedrock Coder from the VSCode extension marketplace.
Open the extension settings in VSCode and paste the ALB endpoint.
Usage
Open the Code Generation Extension by going to the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) and selecting "Code Generation".
Enter your description in the provided text area and attach any relevant image, such as architecture diagrams.
Click the "Generate" button.
The generated code will be displayed in the response area.
Click on the "Copy" button to copy the generated code to your clipboard and paste it in your selected file.
If you find this extension useful, I will greatly appreciate it if you star this GitHub repository and leave a review on my VSCode extension itself. Cheers!
Contributing
If you'd like to contribute to this project, please follow these steps:
Fork the GitHub repository.
Create a new branch for your feature or bug fix.
Make your changes and commit them with descriptive commit messages.