nixpkgs/maintainers/scripts/ec2/ebs-creator.nix
Eelco Dolstra bcc24c1b86 * Finish the EBS creation script. It now takes a --region option to
specify the EC2 region in which the AMI is to be created.  It also
  starts an instance booted from the newly created AMI to test it.

svn path=/nixos/trunk/; revision=33771
2012-04-13 11:26:22 +00:00

13 lines
341 B
Nix

{
network.description = "NixOS EBS creator";
machine =
{ config, pkgs, ... }:
{ deployment.targetEnv = "ec2";
deployment.ec2.instanceType = "m1.small";
deployment.ec2.keyPair = "eelco";
deployment.ec2.securityGroups = [ "eelco-test" ];
deployment.ec2.blockDeviceMapping."/dev/xvdg".size = 20;
};
}