Creating AMI's from EBS backed instances is exceedingly easy, but doing the same from an instance-store based instance seems like it can only be done manually using the CLI.
So far I've been able to bootstrap the creation of an 'instance-store' based server off of an HVM Amazon Linux AMI with Ansible, but I'm getting lost on the steps that follow... I'm trying to follow this: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-instance-store-ami.html#amazon_linux_instructions
Apparently I need to store my x.509 cert and key on the instance, but which key is that? Is that...
- one I have to generate on the instance with openssl,
- one that I generate/convert from AWS,
- one I generate with Putty, or
- one that already exists in my AWS account?
After that, I can't find any reference to ec2-bundle-vol
in Ansible. So I'm left wondering if the only way to do this is with Ansible's command
module.
Basically what I'm hoping to find out is: Is there a way to easily create instance-store
based AMI's using Ansible, and if not, if anyone can reference the steps necessary to automate this? Thanks!