Search code examples
amazon-web-servicesamazon-ec2amazon-ami

Create EC2's AMI with installed softwares and server configuration


Our customer asked us to migrate our soft from on-premise to his AWS environment. So to test this we made this in our own AWS account to ensure that it's working, we have now a working soft in our account.

Is it possible to create an image or anything of our environment with installed soft and/or libraries to prevent us from going through the deployment phase again?


Solution

  • According to your requirements i am assuming you have already installed all the required software and libraries on your ec2.

    So in order to avoid creating that environment again you can create AMI for your ec2 instance.

    according to docs

    You can launch an instance from an existing AMI, customize the instance (for example, install software on the instance), and then save this updated configuration as a custom AMI. Instances launched from this new custom AMI include the customizations that you made when you created the AMI.

    follow these steps to create ami using console.After creating Ami, you can launch ec2 directly from AMI or ec2 launch menu by selecting your custom ami.

    Note: AMI's are stored in s3 so you will charged for storage in s3 and once your work is done you can register it.