# Pastebin F9fAl0E9 let region = "eu-central-1"; accessKeyId = "default"; webserver = {resources, ...}: { deployment = { targetEnv = "ec2"; ec2.region = region; ec2.instanceType = "t2.micro"; ec2.accessKeyId = accessKeyId; ec2.keyPair = resources.ec2KeyPairs.my-key-pair; ec2.associatePublicIpAddress = true; ec2.securityGroups = [ "allow-ssh" "allow-http" ]; }; services.httpd.enable = true; services.httpd.documentRoot = "/data"; }; in { apache = webserver; resources.ec2KeyPairs.my-key-pair = { inherit region accessKeyId; }; }