def create_policies(self, users):
iam_client = next(iam_resource_objects())<EOL>policy = next(return_reference('<STR_LIT>'))<EOL>try:<EOL><INDENT>r = iam_client.create_policy(<EOL>PolicyName='<STR_LIT>',<EOL>Path='<STR_LIT:/>',<EOL>PolicyDocument=str(policy),<EOL>Description='<STR_LIT>'<EOL>)<EOL>self.policy_arns.append(r['<STR_LIT>']['<STR_LIT>'])<EOL><DEDENT>except Exception as e:<EOL><INDENT>logger.exception('<STR_LIT>')<EOL>return False<EOL><DEDENT>return True<EOL>
Create IAM policies for new test users