Copy Old Logs to S3

Copy Old Logs to S3

This pipeline template allows you to automatically collect old logs from a local directory to an Amazon S3 bucket. The pipeline will first create a new file in a specified directory that will represent your PEM file, containing all the necessary keys and certificates. It will also ensure that you have the necessary permissions for the file. The pipeline will then execute a script that moves the logs to the S3 bucket from oldest to newest, leaving only 7 logs in the instance.