Create an instance in any subnet/vpc. Attach an extra volume and create a file in that volume. Install apache, create an AMI of the existing system and then create an instance with that newly created AMI. Verify that Apache is already installed and file is also present in the newly created Instance.
Launch an EC2 instance in your preferred subnet/VPC using the AWS Management Console or the AWS CLI. During the instance launch, attach an additional EBS volume to it. Connect to the instance using SSH or Remote Desktop. Mount the additional EBS volume to the instance and create a file in it. Install Apache on the instance using the appropriate package manager for your operating system. Once Apache is installed, stop the instance and create an AMI from it using the AWS Management Console or the AWS CLI. Launch a new instance from the newly created AMI in the same subnet/VPC as the original instance. Connect to the new instance using SSH or Remote Desktop and verify that Apache is installed and the file you created in step 3 is present in the additional EBS volume.