Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (19 loc) · 495 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 495 Bytes

aws-toolkit

Amazon Web Services (AWS) tools

cleanmyami.sh

Clean an EC2 instance before create a new AMI

Usage

As non root user

set +o history

history -c

sudo -i

As root user

set +o history

history -c

bash <(curl -s https://raw.githubusercontent.com/ebenzecri/aws-toolkit/master/cleanmyami.sh)

What this script does?

  • Delete files or directories you specify
  • Delete SSH keys from all users
  • Clean cached packages
  • Clean logs
  • Clean bash history for all users