“How To Build a Serverless CI/CD Pipeline On AWS” is a nice guide to some of the newer Amazon AWS services, targeted at developers and DevOps. It shows how to tie together the following:
- Amazon EC2 (server instances)
- Docker (containers)
- Amazon ECR (Elastic Container Registry)
- Amazon S3 (storage)
- Amazon IAM (Identity and Access Management)
- Amazon CodeBuild (Continuous Integration)
- Amazon CodePipeline (Continuous Delivery)
- Amazon CloudWatch (monitoring)
- Amazon CloudTail (logs)
The examples in the article are for setting up the CI/CD pipeline for .NET, but they are easily adoptable for other development stacks.
AWS Developer Blog ran this post a while back – “PHP application logging with Amazon CloudWatch Logs and Monolog“, in which they show how to use Monolog and Amazon CloudWatch together in any PHP application. It goes beyond a basic configuration of connecting the two, all the way into setting up log metrics, etc.
Gonzalo Ayuso throws a few snippets of code in the blog posts title “Handling Amazon SNS messages with PHP, Lumen and CloudWatch“, which shows how to work with Amazon SNS (Simple Notifications Service) and Amazon CloudWatch (cloud and network monitoring solution) from PHP. The examples are based on the Lumen micro-framework, which is basically a stripped down Laravel.