Secure Publicly Accessible Amazon RDS Snapshots and Report to Slack
This automation secures publicly accessible Amazon Amazon Relational Database Service (RDS) snapshots and reports to Slack. This automation prevents having your data from any RDS snapshots (old or new) vulnerable to being exposed by restricting its access automatically.
  1. Get all RDS snapshots from the specified region.
  2. For each snapshot, get the snapshot attributes.
  3. If the snapshot is publicly accessible, Fully restrict public access to the snapshot and make it private.
  4. Report to Slack channel on the snapshot restricting.