One of the issues I had to tackle at work was keeping servers up-to-date with the most recent security patches. This is not easy to do; manually, when it comes to environments with a large number of servers. In order to resolve this issue, I decided to use AWS Systems Manager which allows me to view and control our infrastructure in AWS.

AWS Systems Manager (SSM) allows you to view operational data from multiple AWS services and automate operational tasks. To find out more about this service Click Here. …

AWS Lambda

In a previous article we went through the steps on how to setup your AWS environment to Export EC2 logs to CloudWatch. In this article we will build on that and go through the steps to automate exporting CloudWatch Logs to S3. To accomplish this, we will be using the following AWS services:

  1. S3 (Bucket & Bucket Policy)
  2. IAM (Lambda Role)
  3. CloudWatch (Events Rules)
  4. Lambda (Functions)

S3 (Bucket & Bucket Policy)

First, you will need to create the S3 Bucket to export the logs to. This AWS Documentation will walk you through on how to create an S3 Bucket. …

I was recently tasked with finding a solution to migrate the Application Logs of an EC2 instance to CloudWatch, then export the logs to S3 using automation. In order to make this walk-through “short” and easy to read, I have divided it into two articles.

  1. Export Windows EC2 logs to CloudWatch.
  2. Export CloudWatch Logs to S3 Using Lambda.

In this article we will go through the process of setting up the services to export the Logs from an EC2 Instance to CloudWatch. The same steps can be applied to export logs from a Linux EC2 instance.

This solution can be…

Omar Dulaimi

| Systems Engineer | DevOps Engineer l Linux Admin | AWS Certified Solution Architect Associate & SysOps Administrator |

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store