diff --git a/testdata/ing_shared_rg_notshared_alb/output/params/01-ing.json b/testdata/ing_shared_rg_notshared_alb/output/params/01-ing.json index c1ecf899..f4629ec0 100644 --- a/testdata/ing_shared_rg_notshared_alb/output/params/01-ing.json +++ b/testdata/ing_shared_rg_notshared_alb/output/params/01-ing.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/ing_shared_rg_notshared_alb/output/params/02-rg.json b/testdata/ing_shared_rg_notshared_alb/output/params/02-rg.json index c1ecf899..f4629ec0 100644 --- a/testdata/ing_shared_rg_notshared_alb/output/params/02-rg.json +++ b/testdata/ing_shared_rg_notshared_alb/output/params/02-rg.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/ing_shared_rg_notshared_alb/output/templates/01-ing.cf b/testdata/ing_shared_rg_notshared_alb/output/templates/01-ing.cf index 7e9378df..546d1a4c 100644 --- a/testdata/ing_shared_rg_notshared_alb/output/templates/01-ing.cf +++ b/testdata/ing_shared_rg_notshared_alb/output/templates/01-ing.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10", @@ -71,6 +76,14 @@ "Properties": { "DefaultActions": [ { + "ForwardConfig": { + "TargetGroupStickinessConfig": { + "DurationSeconds": 3600, + "Enabled": { + "Ref": "Stickiness" + } + } + }, "TargetGroupArn": { "Ref": "TG" }, diff --git a/testdata/ing_shared_rg_notshared_alb/output/templates/02-rg.cf b/testdata/ing_shared_rg_notshared_alb/output/templates/02-rg.cf index 7e9378df..546d1a4c 100644 --- a/testdata/ing_shared_rg_notshared_alb/output/templates/02-rg.cf +++ b/testdata/ing_shared_rg_notshared_alb/output/templates/02-rg.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10", @@ -71,6 +76,14 @@ "Properties": { "DefaultActions": [ { + "ForwardConfig": { + "TargetGroupStickinessConfig": { + "DurationSeconds": 3600, + "Enabled": { + "Ref": "Stickiness" + } + } + }, "TargetGroupArn": { "Ref": "TG" }, diff --git a/testdata/ingress_alb/output/params/ing.json b/testdata/ingress_alb/output/params/ing.json index c1ecf899..f4629ec0 100644 --- a/testdata/ingress_alb/output/params/ing.json +++ b/testdata/ingress_alb/output/params/ing.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/ingress_alb/output/templates/ing.cf b/testdata/ingress_alb/output/templates/ing.cf index 7e9378df..546d1a4c 100644 --- a/testdata/ingress_alb/output/templates/ing.cf +++ b/testdata/ingress_alb/output/templates/ing.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10", @@ -71,6 +76,14 @@ "Properties": { "DefaultActions": [ { + "ForwardConfig": { + "TargetGroupStickinessConfig": { + "DurationSeconds": 3600, + "Enabled": { + "Ref": "Stickiness" + } + } + }, "TargetGroupArn": { "Ref": "TG" }, diff --git a/testdata/ingress_nlb/output/params/ing.json b/testdata/ingress_nlb/output/params/ing.json index adec04c7..a4aa3d62 100644 --- a/testdata/ingress_nlb/output/params/ing.json +++ b/testdata/ingress_nlb/output/params/ing.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/ingress_nlb/output/templates/ing.cf b/testdata/ingress_nlb/output/templates/ing.cf index d024df80..9dbd84c8 100644 --- a/testdata/ingress_nlb/output/templates/ing.cf +++ b/testdata/ingress_nlb/output/templates/ing.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10", diff --git a/testdata/ingress_rg_shared_alb/output/params/shared.json b/testdata/ingress_rg_shared_alb/output/params/shared.json index c1ecf899..f4629ec0 100644 --- a/testdata/ingress_rg_shared_alb/output/params/shared.json +++ b/testdata/ingress_rg_shared_alb/output/params/shared.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/ingress_rg_shared_alb/output/templates/shared.cf b/testdata/ingress_rg_shared_alb/output/templates/shared.cf index 7e9378df..546d1a4c 100644 --- a/testdata/ingress_rg_shared_alb/output/templates/shared.cf +++ b/testdata/ingress_rg_shared_alb/output/templates/shared.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10", @@ -71,6 +76,14 @@ "Properties": { "DefaultActions": [ { + "ForwardConfig": { + "TargetGroupStickinessConfig": { + "DurationSeconds": 3600, + "Enabled": { + "Ref": "Stickiness" + } + } + }, "TargetGroupArn": { "Ref": "TG" }, diff --git a/testdata/ingress_rg_shared_nlb/output/params/shared.json b/testdata/ingress_rg_shared_nlb/output/params/shared.json index adec04c7..a4aa3d62 100644 --- a/testdata/ingress_rg_shared_nlb/output/params/shared.json +++ b/testdata/ingress_rg_shared_nlb/output/params/shared.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/ingress_rg_shared_nlb/output/templates/shared.cf b/testdata/ingress_rg_shared_nlb/output/templates/shared.cf index d024df80..9dbd84c8 100644 --- a/testdata/ingress_rg_shared_nlb/output/templates/shared.cf +++ b/testdata/ingress_rg_shared_nlb/output/templates/shared.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10", diff --git a/testdata/rg_alb/output/params/rg.json b/testdata/rg_alb/output/params/rg.json index c1ecf899..f4629ec0 100644 --- a/testdata/rg_alb/output/params/rg.json +++ b/testdata/rg_alb/output/params/rg.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/rg_alb/output/templates/rg.cf b/testdata/rg_alb/output/templates/rg.cf index 7e9378df..546d1a4c 100644 --- a/testdata/rg_alb/output/templates/rg.cf +++ b/testdata/rg_alb/output/templates/rg.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10", @@ -71,6 +76,14 @@ "Properties": { "DefaultActions": [ { + "ForwardConfig": { + "TargetGroupStickinessConfig": { + "DurationSeconds": 3600, + "Enabled": { + "Ref": "Stickiness" + } + } + }, "TargetGroupArn": { "Ref": "TG" }, diff --git a/testdata/rg_nlb/output/params/rg.json b/testdata/rg_nlb/output/params/rg.json index adec04c7..a4aa3d62 100644 --- a/testdata/rg_nlb/output/params/rg.json +++ b/testdata/rg_nlb/output/params/rg.json @@ -50,5 +50,9 @@ { "parameterKey": "TargetGroupHealthCheckTimeoutParameter", "parameterValue": "0" + }, + { + "parameterKey": "Stickiness", + "parameterValue": "false" } ] diff --git a/testdata/rg_nlb/output/templates/rg.cf b/testdata/rg_nlb/output/templates/rg.cf index d024df80..9dbd84c8 100644 --- a/testdata/rg_nlb/output/templates/rg.cf +++ b/testdata/rg_nlb/output/templates/rg.cf @@ -30,6 +30,11 @@ "Type": "List\u003cAWS::EC2::Subnet::Id\u003e", "Description": "The list of subnets IDs for the Load Balancer" }, + "Stickiness": { + "Type": "String", + "Default": "false", + "Description": "Enable Target Group Stickiness" + }, "TargetGroupHealthCheckIntervalParameter": { "Type": "Number", "Default": "10",