Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create group "MyGroup"
- authorize group "MyGroup" grant {
- protocol("TCP")
- from(22)
- to(22)
- source("0.0.0.0/0")
- }
- val boot_script = create script "MyScript" build_with {
- template("script_templates/prolog.ssp")
- template("script_templates/install_jdk.ssp")
- template("script_templates/epilog.ssp")
- }
- val instances = run instances "emi-DF27106D" configure_with {
- min(1)
- max(1)
- key("mykey")
- groups("MyGroup")
- size("m1.xlarge")
- script(boot_script)
- }
- instances wait_for_running
- instances terminate
- delete group "MyGroup"
Add Comment
Please, Sign In to add comment