Deploy an EC2 Web Server with Python HTTP Server

By Pulumi Team
Published
Updated

The Challenge

You need a simple web server running on EC2 for testing, development, or hosting a basic website. This is the simplest way to get a web server running in the cloud.

What You'll Build

  • EC2 instance running Amazon Linux 2023
  • Security group allowing HTTP traffic
  • Python HTTP server serving on port 80
  • Public IP and DNS for access

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 a simple web server for testing, development, or hosting basic HTML content. Perfect for learning EC2, quick prototypes, or simple websites that don’t need complex infrastructure.

Simple Web Server

This deployment creates:

  • EC2 Instance - Virtual server in the cloud
  • Automatic Setup - User data script configures everything
  • Python HTTP Server - Built-in web server
  • Public Access - Accessible from the internet
  • Cost-Effective - Uses t2.micro (free tier eligible)

Great for learning, testing, or simple web hosting!