def ansible_dict_to_boto3_tag_list(tags_dict):
 tags_list = []
 for (k, v) in tags_dict.items():
  tags_list.append({'Key': k, 'Value': v})
 return tags_list

def ansible_dict_to_boto3_tag_list ( tags_dict ) : tags_list = [ ] for ( k , v ) in tags_dict . items ( ) : tags_list . append ( { 'Key' : k , 'Value' : v } ) return tags_list
convert a flat dict of key:value pairs representing aws resource tags to a boto3 list of dicts args: tags_dict : dict representing aws resource tags .