Advertisement
Guest User

physical setup

a guest
Sep 19th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. let
  2.  
  3. region = "eu-west-1";
  4. accessKeyId = "dev"; # symbolic name looked up in ~/.ec2-keys or a ~/.aws/credentials profile name
  5.  
  6. ec2 =
  7. { resources, ... }:
  8. { deployment.targetEnv = "ec2";
  9. deployment.ec2.accessKeyId = accessKeyId;
  10. deployment.ec2.region = region;
  11. deployment.ec2.instanceType = "m1.small";
  12. deployment.ec2.keyPair = resources.ec2KeyPairs.my-key-pair;
  13. };
  14.  
  15. in
  16. { proxy = ec2;
  17. backend1 = ec2;
  18. backend2 = ec2;
  19.  
  20. # Provision an EC2 key pair.
  21. resources.ec2KeyPairs.my-key-pair =
  22. { inherit region accessKeyId; };
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement