LeetStealth

Setting up AWS for use with the app:

  1. Create AWS account
    1. Go to aws.com
    2. Click on "Create Account" button
    3. Click on "New to AWS? Sign up" button
    4. Follow the prompts to create an AWS account -- I would recommend linking your credit card so your account doesn't get deactivated, but you do you.
    5. Once you have logged in to your new account, move on to the next step
  2. Select your AWS region
    1. Do a little bit of research on which AWS region is closest to you. You can find more information from AWS here
    2. Once you have determined what the correct region for you is, select that region from the dropdown box in the top righthand side of your AWS Dashboard
  3. Get approved by AWS to use LLMs
    1. From the AWS dashboard, click on the Search bar at the top and type "Bedrock". Click on the Amazon Bedrock option
    2. In the navigation bar on the left side, scroll down and click on "Model access"
    3. Enable any models you may want to use. Note that if you do not enable access to a model here, you will not be able to use it. Also note that model access is requested for each region separately -- this means that if you enable the model in us-east-1, it cannot be used in us-east-2 until you enable it there as well.
    4. Fill out the form to request model access -- it's pretty easy and straightforward. If you don't already have a website and it is required to complete this form, it's very easy to set up a new website at neocities.org.
    5. You should have immediate access to most of the LLMs offered by AWS. You are likely to receive access to the remaining LLMs in the next day or so.
    6. Once you have confirmed that you have access to these LLMs, you can move on to the next step.
  4. Generate AWS credentials
    1. From the AWS dashboard, click on the Search bar at the top and type "IAM". Click on the IAM option
    2. In the navigation bar on the left side click on "User groups". Click on the "Create group" button.
    3. Give your group an easy to remember name. Don't add any users for now. Under "Attach Permissions Policy" search for the phrase "bedrock". Near the top of the list should be "AmazonBedrockFullAccess". Select this option. Click on the "Create User Group" button at the bottom.
    4. In the navigation bar on the left side click on "Users". Click on the "Create user" button.
    5. Give your user an easy to remember name. Select the user group you just created to add those permissions to this user. Finish and submit the form.
    6. Once the user has been created, click into the user from the Users page. Under "Access key 1" click "Create access key". Click on "Other". On the last screen, you should now see an Access Key and a Secret Access Key. These will be used to give LeetStealth permission to query AWS LLMs for solutions to your coding questions. Make sure to capture these values now, they will not be accessible later.
    7. Once you've generated these credentials, you are ready to use LeetStealth!
  5. Put it all together in LeetStealth
    1. Put in the region you selected previously
    2. You can play around with which model is right for you. Amazon Nova Lite is one of the cheapest and performance has been pretty good in my experience.
    3. Put in the Access Key and Secret Access Key from the previous step.
    4. With your AWS credentials set up correctly, you should be good to start using LeetStealth