This project aims to create a simple web server in AWS EC2, using it's user data parameters.
Deploy will be handled in Nginx, using and t2.micro, in default VPC settings, using Amazon Linux 2023.
No DNS, AWS Route 53 nor AWS Cloudfront will be added in this project, to keep as simple as possible.
So, that's how is done:
To deploy via command line, directly to EC2 instance connect or through the AWS CLI:
launch-instance.sh
Or through the AWS Console:
Select Launch Instances in EC2 section at AWS Console:
Add a name, select the Amazon Machine Image (AMI), in this case, Amazon Linux 2023.
Once launched, wait a few minutes to be ready, and access the EC2 panel, click in the instance id, choose the DNS Ipv4 address, will be like:
ec2-s0m4-1p-address-here.compute-1.amazon.com