This is a sample app that was built for the Brest AWS User Group Meetup of 1st of June 2022.
The purpose is to show how to improve the observability of a serverless application by having good logging in place.
In other words: How to move from an hello-world to a prod ready serverless application?
.
- AWS CLI already configured with Administrator permission
- Golang
- SAM CLI - Install the SAM CLI
1️⃣ Use a logging library: see commit
2️⃣ Configure logs as json: see commit
3️⃣ Log aws request id: see commit
4️⃣ Use structured logging: see commit
5️⃣ Enable access logs for API GW: see commit
6️⃣ Optimize cost by:
‣ Define retention period for log groups: see commit
‣ Use specific log level per env: see commit