Guest User

Untitled

a guest
May 27th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. create group "MyGroup"
  2.  
  3. authorize group "MyGroup" grant {
  4. protocol("TCP")
  5. from(22)
  6. to(22)
  7. source("0.0.0.0/0")
  8. }
  9.  
  10. val boot_script = create script "MyScript" build_with {
  11. template("script_templates/prolog.ssp")
  12. template("script_templates/install_jdk.ssp")
  13. template("script_templates/epilog.ssp")
  14. }
  15.  
  16. val instances = run instances "emi-DF27106D" configure_with {
  17. min(1)
  18. max(1)
  19. key("mykey")
  20. groups("MyGroup")
  21. size("m1.xlarge")
  22. script(boot_script)
  23. }
  24.  
  25. instances wait_for_running
  26.  
  27. instances terminate
  28.  
  29. delete group "MyGroup"
Add Comment
Please, Sign In to add comment