Skip to content

Instantly share code, notes, and snippets.

@tbatchelli
Created January 22, 2014 04:31
Show Gist options
  • Select an option

  • Save tbatchelli/8553531 to your computer and use it in GitHub Desktop.

Select an option

Save tbatchelli/8553531 to your computer and use it in GitHub Desktop.
(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