EC2 Instance Configuration

Configuring the EC2 Instance

In the AWS Console:

  • Search for and select EC2

5.1.1

In the EC2 management interface:

  • Select Instances
  • Click on Launch Instances

5.1.2

  • Name it FCJ-Lab-my-server

5.1.3

  • Choose the operating system Ubuntu
  • Amazon Machine Image (AMI) Ubuntu Server 24.04

5.1.4

  • Instance type t3.medium
  • Select Create new key pair

5.1.5

  • Key pair name FCJ-Lab-key
  • Select Create key pair

5.1.6

Scroll down to the security configuration section:

  • VPC FCJ-Lab-vpc
  • Choose public subnet
  • Auto-assign public IP Enable
  • Select Select existing security group
  • Choose FCJ-Lab-SG

5.1.7

  • Select Launch Template

5.1.8

Attach ECR Role to EC2

In the EC2 instance management interface:

  • Select EC2 FCJ-Lab-vpc
  • Choose Action
  • Select Security
  • Click on Modify IAM role

5.1.9

  • Select the Role CustomeRWECRRole
  • Click on Update IAM role

5.1.10