Posts

Showing posts from August, 2017

PyPI hosting on AWS S3

Create a web hosting in the AWS S3 It is a common task to create a web hosting in the S3 bucket. However, you have to change the permission to access the bucket via http protocol. For that you can right click the dist folder and select the Make public from the drop down menu. Create Distribution package Create a directory for distribution package source for example ojservice . Your folder structure is as follows: ojsevice+ | +index.html | +error.html | +LICENSE.txt | +README.txt | +setup.py | +ojservice+ | +__init__.py | +helloservice.py In the above structure, index.html and error.html are two files given in the AWS S3 host configuration under the bucket’s Static web hosting : respectively index and error documents. Here the helloservice.py: def hello (name) : return 'Hello {}