DEV Community

Cover image for HOW TO CREATE EC2 INSTANCE ON AMAZON WEB SERVICES AND INTALLATION OF IIS WEB-SERVER

HOW TO CREATE EC2 INSTANCE ON AMAZON WEB SERVICES AND INTALLATION OF IIS WEB-SERVER

What is EC2?
EC2, or Amazon Elastic Compute Cloud, is a service provided by Amazon Web Services (AWS) that allows users to rent virtual servers (instances) on the cloud to run applications. It offers scalable computing capacity, making it easier for developers to build and deploy applications without needing to invest in physical hardware.

Key Features of EC2:

  1. Elasticity: You can quickly scale up or down the number of instances based on your workload.
  2. Instance Types: EC2 provides a variety of instance types optimized for different use cases, such as compute-intensive tasks, memory-intensive applications, or general-purpose needs.
  3. Flexible Pricing:
    • On-Demand Instances: Pay for compute capacity by the hour or second with no upfront costs.
    • Reserved Instances: Commit to using an instance for a specific period (e.g., 1 or 3 years) for a discounted rate.
    • Spot Instances: Use unused EC2 capacity at a lower price, suitable for flexible or interruptible workloads.
  4. Storage Options:
    • Elastic Block Store (EBS): Persistent block storage for data that persists independently of the instance lifecycle.
    • Instance Store: Temporary storage tied to the lifecycle of the instance.
  5. Security: Provides features like Virtual Private Cloud (VPC), security groups, and IAM roles to secure access to resources.
  6. Global Availability: Instances can be deployed in multiple geographic regions and availability zones for redundancy and low-latency access.
  7. Integration with Other AWS Services: Seamlessly integrates with AWS services like S3, RDS, and Lambda for a complete cloud ecosystem.

Common Use Cases:

  • Web hosting
  • Application development and testing
  • Big data processing
  • High-performance computing
  • Running containerized applications using services like Docker or Kubernetes

EC2 is a foundational component of AWS's Infrastructure as a Service (IaaS) offerings, providing the flexibility and control needed to customize the computing environment to specific requirements.

The Steps

  • Log into the Browser and search for AWS.

  • Create your account.

  • Log into the account after the creation. Below is the environment of the AWS after the account creation.

Image description

  • In the search box, search for EC2, after poping up, click the box. In the box, click on Instances

Image description

  • Click on** Launch Instances**

Image description

  • Click the box and give the Instance you wanted to create a name of your choice.e.g 'ambassador'.

Image description

  • Click on the 'Add additional tags' icon to add more tags to the instance. Tags are for identification.

Image description

  • Clicking on the additional tags will bring this below;

Image description

  • Click on Stockholm icon to select the** Region**.

Image description

  • Scroll to the Application or OS image region to select the type of Image suitable for your operation.

Image description

  • Select the kind Instance that won't cost so much.

  • Create a Key Pair name.

Image description

  • On the Network Security, Select Allow Http from the internet

Image description

  • On the Configure Storage, you can increase the memory.

Image description

  • Click the Launch icon.

  • It has successfully launched.

Image description

  • Click on Connect to Instance.

Image description

  • Click on RDP Client Icon

Image description

  • Click on Download Remote Desktop file

Image description

  • Go to the Desktop file to open it up

Image description

  • Click on the Get password

Image description

  • Click on upload private key file and then click Decrypt Password

Image description

  • Click on the Key Pair Downloaded and Open.

Image description

  • After the Download of the Key Pair, Decrypt Password

Image description

  • The Password after been Decrypt. Copy it, and Go to RDP File been downloaded to connect the EC2 Instance.

Image description

Image description

Image description

  • The environment of the Instance

Image description

  • Opening of PowerShell in the EC2 instance environment, run it as an Administrator, to Install the Web-Server Management Tool in it.

Image description

The environment of the Web-server after the installation in the EC2 Instance.

Image description

  • Return to the AWS account to copy the Public IP address to indicate that something has been install on the EC2 Instance and is on the Browser.

Image description

  • The environment of the Browser.

Image description

Top comments (0)