This project is built and uploaded to s3 as a lambda zip.
- Figure out your slack channel ID.
- Figure out your slack oauth token.
- Upload the cloudformation.yaml file to https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks?filteringText=&filteringStatus=active&viewNested=true&hideStacks=false
- Supply the non-default fields.
- Click through the forms.
- Wait and watch slack!
- Gain trust in this code.
- Build it and upload to s3.
- Follow the steps above for the trusting, except replace the default values in the cloud formation template with your custom values.
This uses a Makefile to help build. Run make build
to build the resources and
make clean
to clean everything up.
-
Enter your bot name, something like
Project Cupid Bot
, you can change this later if you like -
Select the workspace to use (you will have to be signed in)
-
Select your project which will bring you to the configuration page
-
Under
Add features and functionality
- Make sure
Bots
gets marked - Under
Permissions
set thechat:write
scope underBot Token Scopes
- Make sure
-
Grab the
Bot User Oauth Token
for later -
Find the channel ID by going to your workspace and joining the channel and looking at the URL:
https://app.slack.com/client/<workspace_id>/<channel_id>