Deploy an EC2 instances using @pulumi/aws
, using a common module for creating an instance. A function createInstance
is defined in webserver.js which is then used in main program.
For a walkthrough of the main example, see Part 1 of the quickstart in the Pulumi documentation