Deploy a Simple Static Website to S3

By Pulumi Team
Published
Updated

The Challenge

You need a simple static website hosted on S3 with files uploaded from a local directory. This is perfect for hosting basic HTML sites, documentation, or simple web pages without needing a CDN or complex setup.

What You'll Build

  • S3 bucket configured for static website hosting
  • Two HTML files (index.html and error.html) uploaded from local html/ folder
  • Public read access for website visitors
  • Automatic file uploads from local directory

Neo Try This Prompt in Pulumi Neo

Edit the prompt below and run it directly in Neo to deploy your infrastructure.

Best For

Use this prompt when you need to quickly host a simple static website with just a few HTML files. Perfect for simple landing pages, documentation sites, or when you want to learn how S3 static website hosting works. This is simpler than the CloudFront version—great for development or internal sites.

What This Creates

This deployment:

  • Creates an S3 bucket for hosting your website
  • Uploads files automatically from your local html/ folder
  • Configures static website hosting with index and error pages
  • Sets public access so everyone can view your site

Perfect for simple websites, documentation, or learning S3 static hosting!