Created
June 18, 2011 13:34
-
-
Save hugoduncan/1033105 to your computer and use it in GitHub Desktop.
Create and destroy security group
This file contains 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
(require 'pallet.compute) | |
(def service (pallet.compute/service "your service name from config.clj here") | |
(def security-group-client | |
(.. | |
(clojure.contrib.reflect/get-field | |
org.jclouds.ec2.compute.EC2ComputeService "ec2Client" (.compute service)) | |
getSecurityGroupServices)) | |
(.createSecurityGroupInRegion security-group-client "us-east-1" "sg" "my new sg) | |
(.deleteSecurityGroupInRegion security-group-client "us-east-1" "sg") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment