import boto3 client = boto3.client('s3') response = client.put_object( Bucket='my-top-level-bucket', Body='', Key='test-folder/' )