Skip to content

Instantly share code, notes, and snippets.

@jackjennings
Created October 17, 2018 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackjennings/1ca53db2f453c943e52e6616109c34e5 to your computer and use it in GitHub Desktop.
Save jackjennings/1ca53db2f453c943e52e6616109c34e5 to your computer and use it in GitHub Desktop.
{ database =
{ resources, ... }:
{ deployment.targetEnv = "ec2";
deployment.ec2.accessKeyId = accessKeyId;
deployment.ec2.region = region;
deployment.ec2.ami = "ami-009c9c3f1af480ff3";
deployment.ec2.instanceType = "m5.large";
deployment.ec2.keyPair = resources.ec2KeyPairs.my-key-pair;
deployment.ec2.ebsInitialRootDiskSize = 10;
deployment.ec2.securityGroups =
with resources.ec2SecurityGroups;
[ allow-ssh allow-psql ];
fileSystems."/data" =
{ autoFormat = true;
fsType = "btrfs";
device = "/dev/xvdf";
ec2.size = 5;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment