{
  network.description = "NixOS EBS creator";

  machine =
    { config, pkgs, resources, ... }:
    { deployment.targetEnv = "ec2";
      deployment.ec2.instanceType = "m1.large";
      deployment.ec2.securityGroups = [ "admin" ];
      deployment.ec2.ebsBoot = false;
      deployment.ec2.keyPair = resources.ec2KeyPairs.keypair.name;
      environment.systemPackages = [ pkgs.parted ];
    };
}

{
  network.description = "NixOS EBS creator";

  machine =
    { config, pkgs, resources, ... }:
    { deployment.targetEnv = "ec2";
      deployment.ec2.instanceType = "c3.large";
      deployment.ec2.securityGroups = [ "admin" ];
      deployment.ec2.ebsBoot = false;
      deployment.ec2.keyPair = resources.ec2KeyPairs.keypair.name;
      environment.systemPackages = [ pkgs.parted ];
    };
}

Use HVM instance for EBS creator, guarantees everything is created in the correct zone.
Use HVM instance for EBS creator, guarantees everything is created in the correct zone.

(cherry picked from commit c9763e20e5e793be5eef155601f59dd7639c7ba3)
