Skip to content

Commit

Permalink
Fixed typos in stickiness config
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Mudgett <[email protected]>
Signed-off-by: Drew Mudgett <[email protected]>
  • Loading branch information
drewmudgett authored and Drew Mudgett committed Aug 19, 2024
1 parent 1c9d86d commit b44847f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions aws/cf.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func createStack(svc cloudformationiface.CloudFormationAPI, spec *stackSpec) (st
cfParam(parameterIpAddressTypeParameter, spec.ipAddressType),
cfParam(parameterLoadBalancerTypeParameter, spec.loadbalancerType),
cfParam(parameterHTTP2Parameter, fmt.Sprintf("%t", spec.http2)),
cfParam(parameterStickinessParameter, spec.stickiness),
cfParam(parameterStickinessParameter, fmt.Sprintf("%t", spec.stickiness)),
},
Tags: tagMapToCloudformationTags(tags),
TemplateBody: aws.String(template),
Expand Down Expand Up @@ -308,7 +308,7 @@ func updateStack(svc cloudformationiface.CloudFormationAPI, spec *stackSpec) (st
cfParam(parameterIpAddressTypeParameter, spec.ipAddressType),
cfParam(parameterLoadBalancerTypeParameter, spec.loadbalancerType),
cfParam(parameterHTTP2Parameter, fmt.Sprintf("%t", spec.http2)),
cfParam(parameterStickinessParameter, spec.stickiness),
cfParam(parameterStickinessParameter, fmt.Sprintf("%t", spec.stickiness)),
},
Tags: tagMapToCloudformationTags(tags),
TemplateBody: aws.String(template),
Expand Down
8 changes: 5 additions & 3 deletions aws/cf_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ func generateTemplate(spec *stackSpec) (string, error) {
{
Type: cloudformation.String("forward"),
TargetGroupArn: cloudformation.Ref(httpTargetGroupName).String(),
TargetGroupStickinessConfig: &cloudformation.ElasticLoadBalancingV2ListenerTargetGroupStickinessConfig{
Enabled: cloudformation.Ref(parameterStickinessParameter).String(),
DurationSeconds: cloudformation.Integer(3600)
ForwardConfig: &cloudformation.ElasticLoadBalancingV2ListenerForwardConfig{
TargetGroupStickinessConfig: &cloudformation.ElasticLoadBalancingV2ListenerTargetGroupStickinessConfig{
Enabled: cloudformation.Ref(parameterStickinessParameter).Bool(),
DurationSeconds: cloudformation.Integer(3600),
},
},
},
},
Expand Down

0 comments on commit b44847f

Please sign in to comment.