Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def cluster (aws/cluster "demo-test"
  2.                           :account-id "9234789345463"
  3.                           :region :ca-central-1))
  4.  
  5. (def compose tree/deep-merge)
  6.  
  7. (def vpc
  8.   (aws/vpc "demo" cluster
  9.            :cidr-block "172.10.0.0/16"))
  10.  
  11. (def igw
  12.   (aws/internet-gateway "demo" cluster
  13.                         vpc))
  14.  
  15. (def subnets
  16.   (aws/subnets-pair "demo"
  17.                     vpc
  18.                     igw
  19.                     cluster
  20.                     :az :ca-central-1a
  21.                     :cidr-blocks {:public "172.10.0.1/24"
  22.                                   :private "172.10.0.0/24"}))
  23.  
  24.  
  25. (defterra infra
  26.   (compose
  27.    cluster
  28.    igw
  29.    vpc
  30.    (subnets :public)
  31.    (subnets :private)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement