Skip to content

Instantly share code, notes, and snippets.

@jclouds
Created August 18, 2012 19:04
Show Gist options
  • Save jclouds/3389111 to your computer and use it in GitHub Desktop.
Save jclouds/3389111 to your computer and use it in GitHub Desktop.
create a windows VM in jclouds 1.5.0-beta.10
;; deps: 1.5.0-beta.10 org.jclouds/provider/aws-ec2 org.jclouds/driver/jclouds-bouncycastle
(use 'org.jclouds.compute2)
(def compute (compute-service "aws-ec2" "ACCESS" "SECRET" :bouncycastle ))
;; image has winrm installed
(def windows (create-node compute "windows" (build-template compute { :inbound-ports [5986, 3389] :image-id "us-east-1/ami-0cb76d65" :hardware-id "m1.small" } ) ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment