This provides the steps to create an EC2 instance which runs an apache server which calls a ruby application that can be accessed on port 80.
AWS Account Basic AWS knowledge on EC2 Access to EC2/VPC
Tested only on Redhat Enterprise Linux 7.5 AMI It will only run as a single server instance
- In the AWS console, navigate to EC2 -> Instances -> Launch Instance
- Step 1: Choose an Amazon Machine Image (AMI) Screen: Select Red Hat Enterprise Linux 7.5 (HVM), SSD Volume Type - ami-67589505, Click next
- Step 2: Choose an Instance Type screen: Select General Purpose T2.Micro, Click next
- Step 3: Configure Instance Details screen: Expand "Advance Details" and copy and paste the code from file xxx. click next
- Step 4: Add Storage screen, click next
- Step 5: Add Tags screen, click next
- Step 6: Configure Security Group screen, add a new rule with type HTTP on port range 80 on source 0.0.0.0/0, ::/0. Click Review and Launch
- Step 7: Review Instance Launch screen, click launch. Select or create a key pair for the EC2 Instance
- Monitor the build. It will take approximately 10 minutes after the build to install and configure the app Logs file can be located in /tmp/install.out
Hit the url of your EC2 instance to get a "Hello World" output. Example url: http://ec2-52-63-134-16.ap-southeast-2.compute.amazonaws.com
kaskljsadljkdas