Skip to content

LuizCampedelli/ADA_EC2_USER_DATA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADA EC2 USER DATA

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:

Demonstração

AWS EC2 USER DATA

Deploy

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.

Launch ec2 01

vpc

Launch ec2 03

User data code is in user-data.sh, in code of this repo.

Launch ec2 04

Hit Launch Instance

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

Put in your browser and a page will display like this one:

Screenshot from 2024-08-16 12-22-51

Have fun, keep coding!!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published