Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cablespaghetti/bigben

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Big Ben Lambda Function

Powers https://mastodon.org.uk/@bigben

Runs as an AWS Lambda for great serverless justice

You will need

  • One Python 3.13 installation
  • One Bash shell
  • One virtualenv utility
  • One zip utility
  • One Mastodon access token
  • One AWS account with ready-made IAM Role for Lambda Execution with the AWSLambdaBasicExecutionRole policy attached
  • One installed and configured AWS CLI tool with the relevant permissions to create a Lambda

Environment Varibles

  • MASTODON_BASE_URL - The hostname of the mastodon instance e.g. https://mastodon.org.uk
  • MASTODON_ACCESS_TOKEN - A valid mastodon access token

Initial Command To Deploy Lambda

./buildzip.sh
aws lambda create-function --function-name big-ben --runtime python3.13 --handler main.handler --timeout 15 --zip-file fileb://bigben.zip --role <my-iam-role-arn>

Updating the code

./deploy.sh

About

An AWS Lambda function that posts to mastodon once an hour with bongs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •