Created
May 1, 2015 19:01
-
-
Save jamesthompson/987c323ba73ff5d66468 to your computer and use it in GitHub Desktop.
ec2 nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
region = "us-west-2"; | |
accessKeyId = "CORRECTAWSKEY"; | |
defaults = | |
{ config, pkgs, resources, ... }: | |
{ deployment.targetEnv = "ec2"; | |
deployment.ec2.accessKeyId = accessKeyId; | |
deployment.ec2.region = region; | |
deployment.ec2.instanceType = "m1.small"; | |
deployment.ec2.securityGroups = [ "pj" ]; | |
deployment.ec2.keyPair = resources.ec2KeyPairs.pk; | |
deployment.ec2.ami = "ami-899dc3b9"; | |
}; | |
in | |
{ | |
# Provision an EC2 key pair. | |
resources.ec2KeyPairs.pk = | |
{ inherit region accessKeyId; }; | |
} |
rbvermaa
commented
May 1, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment