Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 573 Bytes

File metadata and controls

8 lines (7 loc) · 573 Bytes

This project is for automation assignment which will be doing following tasks -

  1. Perform an update of the package details and the package list at the start of the script.
  2. Install the apache2 package if it is not already installed.
  3. Ensure that the apache2 service is running.
  4. Ensure that the apache2 service is enabled.
  5. Create a tar archive of apache2 access logs and error logs that are present in the /var/log/apache2/ directory and place the tar into the /tmp/ directory.
  6. The script should run the AWS CLI command and copy the archive to the s3 bucket.