Step 3 – configure source content to deploy to the EC2 instance

For this sample application, you have to add a source file to the EC2 instance. You can create the following files under the C:\Packt directory or any other directory. If you use another directory name, use that name in the following steps:

  1. Sample web page: Create a simple web page, index.html, under the C:\Packt directory and add the following contents:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
   <head> 
         <title>Hi From Packt!!!</title> 
   </head> 
   <body> 
         <h1>Hi From Packt!!!!!</h1> 
   </body> 
</html> 
  1. Script to run the application: Now you need to create a script, before-install.bat, which AWS CodeDeploy uses to set ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.