๐Ÿš€ DevOps 7.3: Rapid Website Deployment on EC2 ๐ŸŒโœจ

๐Ÿ”ง Streamlining Your Web Presence: A Swift Guide to EC2 Deployment ๐Ÿš€๐Ÿ’ป

ยท

2 min read

๐Ÿš€ DevOps 7.3: Rapid Website Deployment on EC2 ๐ŸŒโœจ

Introduction:

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! ๐ŸŒŸ๐Ÿ’ป

Setup a website on EC2:

Steps are as follows:

  1. First lets go to key-pairs in EC2 instance.

  2. Click on Create Key-Pair button.

  3. You can take any project from tooplate.com and use it to deploy.

  4. Name your key-pair.

  5. So public key will be injected into instance and private key is the key which matches the instance and we get the access.

  6. Now go to security group present in Network and Security in the sidebar. And click on Create Security Group button.

  7. 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.

  8. Now, lets launch the instance. You can add following key-value tags.

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

  10. You select the key-pair which you created earlier. This way you can use the same key-pair for multiple instances.

  11. In network settings you can select the existing security group which you had created earlier.

  12. Then you can launch the instance.

  13. Lets connect to the instance using SSH as shown in my previous blog.

  14. You will see something like above when you connect with the instance.

  15. 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
    
  16. We can access the website from the public ip on instance but for that we have to allow port 80 in security group.

Conclusion:

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

Did you find this article valuable?

Support Chronicles of Tech ๐Ÿ“š๐Ÿ’ป by becoming a sponsor. Any amount is appreciated!

ย