---
# System prepended metadata

title: Untitled

---

import yaml, boto3

with open("../files.yml", 'r') as stream:
    try:
        parsed_yaml=yaml.safe_load(stream)
        print(parsed_yaml)
    except yaml.YAMLError as exc:
        print(exc)
        

s3 = boto3.resource('s3')
BUCKET = "interview-bucket-2022"
for i in parsed_yaml.files:
    s3.Bucket(BUCKET).upload_file(i.path , i.path)
        