Creating a Webserver using Pulumi to Build and Manage Infrastructure

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

Ready for the real environment experience?

Time Limit1h


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:


Environment before
Environment after
About the Author

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 the AWS Certified Developer - Associate certification.