[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new) # AWS Web Server component example Deploy an EC2 instance using `@pulumi/aws`, using a common module for creating an instance. A function `createInstance` is defined in [webserver.js](webserver.js) which is then used in main program. For a walkthrough of the main example, [Infrastructure on AWS](https://www.pulumi.com/docs/reference/tutorials/aws/tutorial-ec2-webserver/).