Skip to content

soflo-hacker-hours/meetupslackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Environment variables

export AWS_PROFILE=default
export AWS_PACKAGE_BUCKET=uniqueBucketName
export AWS_STACK_NAME=MySFHHMeetupSlackBot
export SAM_BUILD_FILE=./build/package.yaml
export SLACKWEBHOOKURL=https://hooks.slack.com/services/this/that/more

Preparation

Installation

Create build bucket

aws s3 mb s3://${AWS_PACKAGE_BUCKET}

Deploy environment

Package for AWS

sam package --s3-bucket ${AWS_PACKAGE_BUCKET} --template-file ./template.yaml --output-template-file ${SAM_BUILD_FILE}

Deploy to AWS

sam deploy --template-file ${SAM_BUILD_FILE} --stack-name ${AWS_STACK_NAME} --capabilities CAPABILITY_IAM  --parameter-overrides SlackWebHook=${SLACKWEBHOOKURL}

Configure Slack

  • Add a bot
  • Create New Command (hard coded to be /meetup)
  • Request URL should be the URL found in AWS Stack Outputs with /api appended

About

Slack bot that deploys to AWS Lambda and helps manage Meetup attendance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages