Discord application which converts images to different blurple shades or other colors.
Set up the AWS CLI:
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
Authenticate Docker so it can push images to an ECR registry:
https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-upload
Set up or update an existing Lambda Function to use the pushed image:
Under
Create functionselectContainer image, select your image.Create a new execution role without any selected permissions as we don't need them.
In the function overview under
Designeron the main page selectAdd trigger.Select
API Gatewayfrom the dropdown, create a new HTTP API and selectOpenin the security dropdown.Back on the main page scroll down to Environment variables, click on
editand add your Discord Application's ID asAPPLICATION_CLIENT_IDand its public key asAPPLICATION_PUBLIC_KEY.Now to finish setting up the application scroll back to the top and click on the API Gateway you set up.
At the bottom of the page click on
Detailsand copy the API endpoint into your Discord Application's Interactions Endpoint URL so it can make use of it.Now create the slash command by running
python commands.pyand you are all done!