'Dynamical and programmatical mounting a s3 bucket to a windows ec2 instance

Any suggestion on how one would go about dynamical and programmatical mounting a s3 bucket to a windows ec2 instance ? My idea was to code a little server that sits on the windows machine and exposes a rest API endpoint that I can call to do this via FUSE / s3fs.

Does anyone know about any other solutions for that that might exist already ? I looked threw the AWS API SDK's but nothing seems to fit.

Edit: rclone.org/rc could be of use :)

Thanks.



Solution 1:[1]

Django's 1.7 in send_email method the html_message parameter was added.

Go with this:-

from django.core.mail import send_mail
from django.template.loader import render_to_string


msg_plain = render_to_string('templates/email.txt', {'some_params': some_params})
msg_html = render_to_string('templates/email.html', {'some_params': some_params})

send_mail(
    'email title',
    msg_plain,
    '[email protected]',
    ['[email protected]'],
    html_message=msg_html,
)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Smit Gajera