We use an AMI (Amazon Machine Image) template to launch new EC2 instances with a pre-configured OS, software, settings, and environment — ensuring consistency and faster deployments. It's especially useful for creating custom server images, backups, or scaling identical instances in Auto Scaling Groups or templates.
To scale up or down an EC2 cluster, adjust the desired capacity in the Auto Scaling Group manually or set up scaling policies based on metrics like CPU. AWS will automatically launch or terminate instances to match the new capacity.
cannot recover a deleted private key from AWS.
AWS does not store the .pem file after you download it during key pair creation. If you delete or lose it, you cannot retrieve it again.