AWS Classic

v5.21.1 published on Thursday, Nov 17, 2022 by Pulumi

AWS Web Server Component

View Code Deploy

Deploy an EC2 instance with the @pulumi/aws package, using a common module for creating an instance. We define a function, createInstance, in webserver.js and use it in the main program, index.js.

For a walkthrough of the main example, see Simple Web Server Using Amazon EC2.