Create a image and launch instance using this image

what is image

An image (also referred to as an AMI) defines the programs and settings that are applied when you launch an EC2 instance.

now launch instance and install httpd service

create image

image name

create image

now see image created

launch instance from ami

name

application and os image

instance type

key pair

security group

configure

launch instance

see the instance

httpd already installed