I followed the instructions mentioned in the following aws developer forum post.
https://forums.aws.amazon.com/thread.jspa?threadID=269056
Policy