Check EBS volume encryption with AWS Go SDK

Problem:

  1. Retrieve total number of EBS volumes in specific regions in an AWS account.
  2. Retrieve number of unencrypted EBS volumes in specific regions in an AWS account
  3. Calculate % EBS volumes that are unencrypted by region

*Disclaimer: Quite a few third party tools and AWS Config check encrypted-volumes will retrieve the volumes that are not encrypted. However, if you come across an environment, where AWS Config is not enabled or third party tools are not being used and the only…