Auto-discovering security credentials through iam metadata