public static void main()

in infrastructure/src/main/java/org/apache/geode/infrastructure/aws/DestroyCluster.java [47:64]


  public static void main(String[] args) throws InterruptedException {
    if (args.length != 1) {
      throw new IllegalStateException("This takes one argument, the cluster tag to work with.");
    }
    String benchmarkTag = args[0];

    if (benchmarkTag == null || benchmarkTag.isEmpty()) {
      throw new IllegalStateException("No valid tag found.");
    }

    deleteInstances(benchmarkTag);
    releaseHosts(benchmarkTag);
    deleteLaunchTemplate(benchmarkTag);
    deleteSecurityGroup(benchmarkTag);
    deletePlacementGroup(benchmarkTag);
    deleteKeyPair(benchmarkTag);
    deleteMetadata(benchmarkTag);
  }