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 function
selectContainer image
, select your image.Create a new execution role without any selected permissions as we don't need them.
In the function overview under
Designer
on the main page selectAdd trigger
.Select
API Gateway
from the dropdown, create a new HTTP API and selectOpen
in the security dropdown.Back on the main page scroll down to Environment variables, click on
edit
and add your Discord Application's ID asAPPLICATION_CLIENT_ID
and 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
Details
and 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.py
and you are all done!