This video could not play here.
It may be members-only, region-restricted, or unavailable in embedded players.
Creating Custom AMI in AWS Cloud
Amazon Machine Image An Amazon Machine Image (AMI) provides the information required to launch an instance in the cloud. AMI contains root volume for the instance (Snapshot with Operating System, Application/DB) and set of permissions.
When to create custom AMI ? Nowadays most of the build deployments use tools like Ansible/Puppet/Chef for the pushing the config and customization. Let's consider a scenario you want a machine baked with a big piece of software (R, Oracle etc) , configuration, hardening applied to save the time. This can make the builds to happen faster.
When creating the AMI, its recommended to keep the instance in powered off state to ensure storage is imaged as a hard 'point-in-time' snapshot, no left out cached data. AMI creation process automatically stops the instance during the AMI creation unless you manually choose to keep the instance with “no-reboot” option selected.
To create a custom AMI, launch an instance from an AMI that's similar to the AMI that you'd like to create example (RHEL 7.X or Amazon Linux) and then update the instance with the required configuration. You may follow the recommendation below :
Considerations while creating AMI - Operating system boot is good ( error free). - Update the system with latest available patches. - Application/Database startup is fine , if applicable. - Delete the ssh authorized keys. - Delete any temporary data/files. - Delete the shell/command history.
Watch the video for details