[aws|iam] mock fixes