This should be unnecessary.... ?

Unless I misunderstand, find_ebs_snapshots is all code you wrote which uses the ruby aws-sdk, which is capable of using IAM roles.