Serverless script to keep your slack files hitting the free limit.
yarn install- Copy config.example.json to config.json
- Edit config.json as needed.
- Set up AWS credentials in your environment
yarn deploy- 🎉
- (1-3 above)
- Set the rate to 1 minute.
yarn start
config.json has a number of properties that will configure and customize the script.
| Property | Description |
|---|---|
| slackApiToken | API token retrieved from slack |
| region | AWS region |
| stackName | Generated CloudFormation Stack Name |
| lambdaName | Generated Lambda Name |
| lambdaDescription | Generated Lambda Description |
| memory | Memory Dedicated to Task (default 1024) |
| timeout | Timeout for Task in seconds (default 300) |
| rate | Rate at which the task runs (in AWS Format) |
| maxAge | Max age for ignored files in days (default 30) |
| sendNotifications | If true, notifications are sent to slack after each run in which files are deleted. |
| notificationChannel | Channel to post notifications to (can use # or @ syntax) |