The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

delete_test_instances.sh 612 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. #
  6. # Terminate EC2 test compute cloud instances
  7. #
  8. SCRIPT="${0}"
  9. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  10. . ${SCRIPT_DIR}/list_test_instances.sh
  11. if [[ ${INSTANCES_COUNT} -gt 0 ]] ; then
  12. echo "Terminating ${INSTANCES_COUNT} test instances..."
  13. aws ec2 terminate-instances --instance-ids "$INSTANCES"
  14. echo "Now instances are terminated and will be deleted after few hours"
  15. else
  16. echo "No instances contains tag \"${TEST_TAG}\" to delete"
  17. fi