add UI support for target groups ARNs
update message to be more readable
modify groups to group in message
MODIFY
deploy-board/deploy_board/templates/groups/group_config.tmpl
deploy-board/deploy_board/templates/groups/group_config.tmpl
<label for="load_balancers" class="deployToolTip control-label col-xs-2"
data-toggle="tooltip"
title="Enter the name of load balancers to attach to this autoscaling group">
- Load Balancers
+ Classic Load Balancers
</label>
<div class="col-xs-4">
<div class="input-group">
Please enter the load balancers you would like to attach to this group seperated by commas.
</div>
</div>
+ <div class="form-group">
+ <label for="target_groups" class="deployToolTip control-label col-xs-2"
+ data-toggle="tooltip"
+ title="Enter the name of target group arns to attach to this autoscaling group">
+ Target Group ARNs
+ </label>
+ <div class="col-xs-10">
+ <div class="input-group">
+ <input class="form-control" id="target_groups" name="target_groups" required="false"
+ type="text" value="{{ config.targetGroups |default_if_none:'' }}"/>
+ <span class="input-group-btn">
+ <button id="targetgroupsExpressionId" class="deployToolTip btn btn-default"
+ type="button" data-toggle="tooltip"
+ title="click for more information on target groups">
+ <span class="glyphicon glyphicon-question-sign"></span>
+ </button>
+ </span>
+ </div>
+ </div>
+ </div>
+ <div class="form-group collapse" id="targetgroupsExpressionDetailsId">
+ <div class="col-xs-2">
+ </div>
+ <div class="col-xs-10">
+ Please enter the target group ARNs you would like to attach to this autoscaling group seperated by commas.
+ </div>
+ </div>
</fieldset>
{% csrf_token %}
</form>
$("#loadbalancersExpressionId").click(function() {
$("#loadbalancersExpressionDetailsId").collapse('toggle');
});
+ $("#targetgroupsExpressionId").click(function() {
+ $("#targetgroupsExpressionDetailsId").collapse('toggle');
+ });
});
</script>

MODIFY
deploy-board/deploy_board/webapp/group_view.py
deploy-board/deploy_board/webapp/group_view.py
@@ -219,6 +219,7 @@ def update_group_config(request, group_name):
groupRequest["pagerRecipients"] = params.get("pager_recipients")
groupRequest["launchLatencyTh"] = int(params["launch_latency_th"]) * 60
groupRequest["loadBalancers"] = params.get("load_balancers")
+ groupRequest["targetGroups"] = params.get("target_groups")
if "healthcheck_state" in params:
groupRequest["healthcheckState"] = True

add UI support for target groups ARNs (#670)

update message to be more readable

modify groups to group in message