2.How do you create a custom AMI from an EC2 instance?
To create a custom AMI from an EC2 instance, navigate to the EC2 console, select your instance, click Actions, select Image and templates, choose Create image, and provide an image name and description.