@bp.route('/ec2', methods=['GET'])
@login_required
def ec2():
    instances = get_ec2_info(g.user.account)
    return render_template('compute/ec2.html', ins=instances, state_map=EC2_STATE_MAP)
@bp.route('/ec2', methods=['GET'])
@login_required
def ec2():
    instances = get_ec2_info(g.user.account)
    return render_template('compute/ec2.html', ins=instances, state_map=EC2_STATE_MAP)