Setup a web server on AWS using Cloud Formation

In this post, we will write infrastructure as code, using Cloud Formation, to set up a web server on an EC2 instance on AWS.

We will be covering the following items:

  • Create an EC2 instance manually using AWS console
  • Automate the creation of EC2 instance with Cloud Formation
  • Add a name to the instance and create a tag
  • Connect to the EC2 instance through SSH
  • Set up a web server on the EC2 instance (manually then through…




Software engineer (JS | REACT | Node | AWS | Test Automation)

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What is Functional Programming?

Creating Security Cameras in Unity

How Kanban makes ERP implementation easy?

Bitrise Android Environment Variables

Who are the top companies that provide Microsoft dynamics 365 support services?

Death of my Coding Knowledge Base

Accelerate API development with API Test preferences

Working with Geospatial data — Part:4, Cloud Optimized GeoTiffs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ali Haydar

Ali Haydar

Software engineer (JS | REACT | Node | AWS | Test Automation)

More from Medium

How to create presigned URLs for objects in a private AWS S3 bucket using AWS CLI

Create High Availability Architecture Using AWS Command Line

AWS Cognito with sample application