Created
January 22, 2014 04:31
-
-
Save tbatchelli/8553531 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (ns pallet-aws | |
| (:require [pallet.api :as api] | |
| [pallet.compute :as compute])) | |
| (def id "<your aws identity>") | |
| (def cred "<your aws credendial>") | |
| ;; Security Groups and VPC | |
| ;;------------------------ | |
| ;; You can place your nodes in security groups or on a vpc. | |
| (def vpc-node-spec | |
| (api/node-spec | |
| :image {:os-family :ubuntu} | |
| :location {:subnet-id "subnet-01904d6f"})) | |
| (comment | |
| (api/converge | |
| {(api/group-spec "subnet" :node-spec vpc-node-spec) 1} | |
| :compute my-compute)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment