A Lambda for a CloudFormation Custom Resource to lookup the Unique ID given a Role Name.
This is useful for restricting access to roles in Resource Based Access Policies. Check out our How To Securely Manage System Configuration Using AWS for more details.
Node 10.x
zip role-id-lookup.zip index.js