hands-on lab

Creating a Webserver using Pulumi to Build and Manage Infrastructure

Up to 1h
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Pulumi is an Infrastructure as Code tool that supports multiple cloud providers. The key feature of Pulumi is that it allows you to describe your infrastructure using any of the popular programming languages it supports.

Using a programming language to describe your infrastructure allows you to re-use existing programming skills and develop infrastructure code using familiar tools (such as your favorite IDE) and established development workflows and practices.

In this lab, you will learn how to install and configure the Pulumi command-line tool, and you will learn how to use it to create a web server.

Learning Objectives

Upon completion of this beginner level lab, you will be able to:

  • Install the Pulumi command-line tool
  • Create and configure a new Pulumi project
  • Create an Amazon S3 bucket using Pulumi
  • Create an Amazon EC2 instance and configure it as a simple web server using Pulumi

Intended Audience

  • Cloud Engineers
  • DevOps Engineers
  • Developers 


Knowledge and experience with the following will be beneficial, but is not required:

  • Concept of Infrastructure as Code
  • Amazon EC2
  • Amazon S3
  • The Linux Bash shell

The following courses can be used to fulfill the prerequisites:



October 10th, 2023 - Resolved Node.js issue

November 1st, 2022 - Addressed an issue preventing the pulumi up command from working

Environment before

Environment after

About the author

Learning paths

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Connecting to the Virtual Machine using EC2 Instance Connect
Installing Pulumi and Creating a Project
Creating a Webserver with Pulumi