Advertisement
fkeles

bulk-create-instances.sh

May 10th, 2023 (edited)
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | Source Code | 0 0
  1. #!/bin/bash
  2. # create 10 instances
  3. for i in {1..10}
  4. do
  5.      time oci compute instance launch --display-name "test-$i" --availability-domain sbnF:UK-LONDON-1-AD-1 --compartment-id ocid1.compartment.oc1.<compartment-id> --shape VM.Standard.E2.1 --subnet-id ocid1.subnet.oc1.uk-london-1.<subnet-id> --image-id ocid1.image.oc1.uk-london-1.<image-id> --raw-output --query 'data.id'
  6. done
  7.  
  8. ocid1.instance.oc1.uk-london-1.<instance-id>
  9.  
  10. real    0m2.730s
  11. user    0m0.901s
  12. sys     0m0.491s
  13. ocid1.instance.oc1.uk-london-1.<instance-id>
  14.  
  15. real    0m2.071s
  16. user    0m0.625s
  17. sys     0m0.061s
  18. ocid1.instance.oc1.uk-london-1.<instance-id>
  19.  
  20. real    0m1.977s
  21. user    0m0.723s
  22. sys     0m0.000s
  23. ocid1.instance.oc1.uk-london-1.<instance-id>
  24.  
  25. real    0m1.762s
  26. user    0m0.615s
  27. sys     0m0.061s
  28. ocid1.instance.oc1.uk-london-1.<instance-id>
  29.  
  30. real    0m1.776s
  31. user    0m0.639s
  32. sys     0m0.060s
  33. ocid1.instance.oc1.uk-london-1.<instance-id>
  34.  
  35. real    0m1.690s
  36. user    0m0.639s
  37. sys     0m0.040s
  38. ocid1.instance.oc1.uk-london-1.<instance-id>
  39.  
  40. real    0m2.173s
  41. user    0m0.671s
  42. sys     0m0.040s
  43. ocid1.instance.oc1.uk-london-1.<instance-id>
  44.  
  45. real    0m1.771s
  46. user    0m0.582s
  47. sys     0m0.090s
  48. ocid1.instance.oc1.uk-london-1.<instance-id>
  49.  
  50. real    0m1.865s
  51. user    0m0.662s
  52. sys     0m0.049s
  53. ocid1.instance.oc1.uk-london-1.<instance-id>
  54.  
  55. real    0m1.695s
  56. user    0m0.668s
  57. sys     0m0.011s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement