WARN Act Bot
By Erwin
- 2 minutes read - 347 wordsStatus
Active since around April 2023.
What
As I understand it, there are WARN Acts in most states (maybe all) that require employers of companies over a certain size to give a heads-up to the state when they plan to let go for one reason or another. This could be for permanent closure of a place of business, redundancies for whatever reason, and some other reasons I can't think of right now. Many states make the notices available in some form on the web. Sadly they don't seem to have considered standardizing that, so automation based on the content found online is a challenge.
In my case, I decided to automate checking the notices for the California EDD, and post the incremental changes (summarized where possible) on the Fediverse.
Where
https://sfba.social/@warn_act_ca (originally at https://botsin.space/@warn_act_ca, but that server shut down at the end of 2024).
How
The setup (in AWS) is as follows:
- An S3 bucket to maintain state from one run to another
- A few Systems Manager Parameter Store entries for the knowledge of where the bot is and the token to post to its timeline
- A Lambda that is triggered from EventBridge on a regular basis that checks the California website
- An SQS queue through which to manage the posts to the bot account, with a Lambda consumer that does that work
- Terraform code to create these resources and some tangentially related ones
Cost
$0.00!
Actually, the dedicated AWS account in which this runs had a bill for (literally) a few pennies one time, apparently related to AWS Cost Explorer of all things, but otherwise the monthly bills have been $0.00 since I started.
The reason is that all of the service usage (S3, Lambda, SNS, SQS, CloudWatch, and data transfer) are all flying well under the limits of the permanent AWS free tiers. The biggest risk is probably S3 where the it's running up a bill of about $0.005 per month, so each month that is rounded down to $0.00 but when you request an annual total it lists that as ~$0.05. 😁
You can leave a comment by replying to this post with your own Mastodon/Fediverse account.