When I am comparing 2 json files in different buckets I used etag in order to compare. I loaded the json file into table in dynamodb and now I want to compare that the data is same. Do I have the option to do it? This is what I did for comparing the 2 files between different buckets.
conn = client('s3') # again assumes boto.cfg setup, assume AWS S3
for key2 in conn.list_objects(Bucket='freedom-meital')['Contents']:
for key in conn.list_objects(Bucket='freedom-meital3')['Contents']:
if key['Key'] == key2['Key']:
if key['ETag'] != key2['ETag']:
print(key['Key']+" is not equal between the 2 buckets")
else:
print(key['Key']+" is equal between the 2 buckets")