Basecamp Totoro Bot (Golang)
This is a Basecamp chatbot that posts the latest Mailchimp member stats into the chat room every day.
It is implemented as a Google Cloud Run containerized application that is mostly generic i.e. could be run on any container platform. However, it does make use of Google Cloud Secret Manager for storing the Mailchimp API Key and Basecamp Chatbot URL.
Setup
- Install the Cloud Code for VS Code extension. This includes the dependencies including the local test environment.
- Set up the local Cloud Run service using the Docker builder.
- Ensure you have logged into the Google Cloud project to be able to access the relevant secrets.
Configuration notes
- Two secrets are set up with the Cloud Run project service account given the appropriate read permissions. The Cloud Code extension for VS Code can handle accessing them in local development.
- Google Cloud Scheduler is set up to trigger the service each day. It also has its own service account.