def get_aws_s3_handle(config_map):
url = '<STR_LIT>' + config_map['<STR_LIT>'] + '<STR_LIT>'<EOL>if not AWS_CLIENT.is_aws_s3_client_set():<EOL><INDENT>client = boto3.client(<EOL>'<STR_LIT>',<EOL>aws_access_key_id=config_map['<STR_LIT>'],<EOL>aws_secret_access_key=config_map['<STR_LIT>']<EOL>)<EOL>AWS_CLIENT.set_aws_s3_client(client)<EOL><DEDENT>else:<EOL><INDENT>client = AWS_CLIENT.s3<EOL><DEDENT>return client, url<EOL>
Convenience function for getting AWS S3 objects

    Added by cjshaw@mit.edu, Jan 9, 2015
    Added to aws_adapter build by birdland@mit.edu, Jan 25, 2015, and
    added support for Configuration
    May 25, 2017: Switch to boto3