nixpkgs/maintainers/scripts/ec2/ebs-creator.nix
Rob Vermaas be31aebdcf * Added option for EC2 keypair.
* Added workaround for evaluation
* Add support for cluster instances ami generation, only works in us-east-1 
  for now.

    e.g. ./create-ebs-ami.py --region us-east --hvm --key rob
  
  Cluster instances need to have a 8GB EBS backed image with 1 partition 
  and with grub installed. Also HVM images can (currently) only be generated 
  using the CreateImage API call, which requires a running or stopped 
  instance. 



svn path=/nixos/trunk/; revision=33827
2012-04-18 12:36:20 +00:00

14 lines
354 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" ];
environment.systemPackages = [ pkgs.parted ];
fileSystems = [];
};
}