@bp.route('/ec2/terminate/<instance>', methods=['GET'])
@login_required
def instance_terminate(instance):
    if (not instance):
        abort(400)
    terminate_instance(g.user.account, instance)
    flash(f'Terminating instance {instance}', 'success')
    return redirect(url_for('compute.ec2'))
@bp.route('/ec2/terminate/<instance>', methods=['GET'])
@login_required
def instance_terminate(instance):
    if (not instance):
        abort(400)
    terminate_instance(g.user.account, instance)
    flash(f'Terminating instance {instance}', 'success')
    return redirect(url_for('compute.ec2'))