top of page

UPDATES
Search


EC2 User Data 3
#!/bin/bash yum update -y yum install -y httpd systemctl enable httpd systemctl start httpd cat > /var/www/html/index.html <<'EOF' <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Raveendra Coffee Shop</title> <style> *{ margin:0; padding:0; box-sizing:border-box; scroll-behavior:smooth; } body{
Ingress now
Jul 122 min read


EC2 USER DATA From GIT
#!/bin/bash yum update -y yum install -y httpd git systemctl start httpd systemctl enable httpd cd /var/www/html git clone https://github.com/USERNAME/REPOSITORY.git . systemctl restart httpd echo "Website deployed successfully" > /var/log/user-data.log exit 0
Ingress now
Jul 111 min read


How to Set Up Nginx on an EC2 Instance Using User Data Script
Setting up a web server quickly and reliably is a common task for developers and system administrators. Amazon EC2 instances provide a flexible environment to deploy web applications, and automating the setup process saves time and reduces errors. This post explains how to install and configure Nginx on an EC2 instance using a user data script. This method ensures your server is ready to serve web pages immediately after launch, without manual intervention. EC2 terminal with
Ingress now
Jul 114 min read
bottom of page
