2

I have a business use case and workflow where local/instance/ephemeral storage for an EC2 instance is ideal. Unfortunately I'm coupled to a Windows platform for this particular task and the EC2 Windows offering appears to have some deficiencies related to AMI creation.

In essence, I'm trying to figure out if there's a way to attach local instance storage to a Windows EC2 instance using the typical command line interface (because the Amazon Website GUI doesn't support it) and then to somehow create an AMI based upon that. I've tried creating a snapshot and then creating a Windows AMI based upon the snapshot, but of course the docs say this is unsupported and makes an unbootable AMI.

In short, here's what I'm trying to do:

  1. Be able to run a Windows instance (EBS/S3 instance doesn't matter)
  2. Attach local instance storage as drive D:
  3. Persist that configuration as an AMI such that I can start lots of them as necessary from either the GUI, command line, or REST API.
  4. Be able to take a launched instance, update software, shutdown, and create another AMI based upon that.
  5. Wash, rinse, repeat.

One other potential option which isn't horrible, but isn't ideal is to create an AMI which has 2 EBS volumes already attached (system+apps and data). Essentially, every time I startup an instance based upon the AMI it'll create 2 new EBS volumes of pre-determined size. I'm trying to avoid that scenario if possible.

Jonathan Oliver
  • 319
  • 1
  • 3
  • 13

1 Answers1

0

After much research, it looks like Windows-based AMIs are all backed by EBS with no possibility to convert to S3/instance storage. While the instance/ephemeral disks can be added as at startup via the command line interface, there's no way to make this happen out of the box.

Jonathan Oliver
  • 319
  • 1
  • 3
  • 13