Insight Horizon
technology trends /

Using an Amazon S3 bucket as a static web host

# Define the website configurationwebsite_configuration = { 'ErrorDocument': {'Key': 'error.html'}, 'IndexDocument': {'Suffix': 'index.html'},}# Set the website configurations3 = boto3.client('s3')s3.put_bucket_website(Bucket='BUCKET_NAME', WebsiteConfiguration=website_configuration)