title | seoTitle | seoDescription | datePublished | cuid | slug | cover | ogImage | tags |
---|---|---|---|---|---|---|---|---|
🚀 DevOps 7.3: Rapid Website Deployment on EC2 🌐✨ |
🚀 DevOps 7.3: Rapid Website Deployment on EC2 🌐✨ |
🔧 Streamlining Your Web Presence: A Swift Guide to EC2 Deployment 🚀💻 |
Thu Feb 08 2024 07:16:56 GMT+0000 (Coordinated Universal Time) |
clscvyctv000608jwbmy71o73 |
devops-73-rapid-website-deployment-on-ec2 |
ec2, aws, deployment, devops, wemakedevs |
In DevOps 7.3: Rapid Website Deployment on EC2 🚀🌐, we delve into swift methods for deploying your website on Amazon EC2 instances. Learn the art of seamless website launch and enhance your AWS journey! 🌟💻
-
First lets go to key-pairs in EC2 instance.
-
Click on Create Key-Pair button.
-
You can take any project from tooplate.com and use it to deploy.
-
Name your key-pair.

-
So public key will be injected into instance and private key is the key which matches the instance and we get the access.
-
Now go to security group present in Network and Security in the sidebar. And click on Create Security Group button.
-
Now you can enter the inbound rules, i.e ssh port from your ip address only.
NOTE: Do not change any outbound rules, which may lead to malfunction.
-
Now, lets launch the instance. You can add following key-value tags.

-

You can select the Ubuntu as AMI which is free tier eligible.
-

You select the key-pair which you created earlier. This way you can use the same key-pair for multiple instances.
-
In network settings you can select the existing security group which you had created earlier.

-
Then you can launch the instance.
-
Lets connect to the instance using SSH as shown in my previous blog.
-

You will see something like above when you connect with the instance.
-
We can follow the same process which we did while setting our website locally in my previous blogs. Link - https://saswatblogs.hashnode.dev/launch-your-website-on-linux
sudo -i sudo apt install apache2 wget unzip -y wget https://www.tooplate.com/zip-templates/2136_kool_form_pack.zip unzip 2136_kool_form_pack.zip cp -r 2136_kool_form_pack/* /var/www/html/ sudo systemctl restart apache2
-
We can access the website from the public ip on instance but for that we have to allow port 80 in security group.

In conclusion, we've navigated the swift process of deploying a website on EC2, streamlining the path from setup to launch. Stay tuned for more insights in our DevOps journey! 🚀🌐 #AWS #DevOps #WebDeployment