Skip to content

Commit ecfaac8

Browse files
committed
TF | add port and update health check
1 parent 2e1778c commit ecfaac8

File tree

6 files changed

+44
-28
lines changed

6 files changed

+44
-28
lines changed

terraform/aws/autoscale-gwlb/README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,19 @@ secret_key = "my-secret-key"
164164
## Revision History
165165
In order to check the template version, please refer to [sk116585](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk116585)
166166
167-
| Template Version | Description |
168-
|------------------|---------------------------------------------------------------------------------------------------------------|
169-
| 20220414 | First release of Check Point Auto Scaling GWLB Terraform module for AWS |
170-
| 20220606 | New instance type support |
171-
| 20221123 | R81.20 version support |
172-
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
173-
| 20230521 | - Change default shell for the admin user to /etc/cli.sh<br/>- Add description for reserved words in hostname |
174-
| 20230806 | Add support for c6in instance type |
175-
| 20230829 | Change default Check Point version to R81.20 |
176-
| 20230914 | Add support for maintenance mode password |
177-
| 20230923 | Add support for C5d instance type |
178-
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
167+
| Template Version | Description |
168+
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
169+
| 20220414 | First release of Check Point Auto Scaling GWLB Terraform module for AWS |
170+
| 20220606 | New instance type support |
171+
| 20221123 | R81.20 version support |
172+
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
173+
| 20230521 | - Change default shell for the admin user to /etc/cli.sh<br/>- Add description for reserved words in hostname |
174+
| 20230806 | Add support for c6in instance type |
175+
| 20230829 | Change default Check Point version to R81.20 |
176+
| 20230914 | Add support for maintenance mode password |
177+
| 20230923 | Add support for C5d instance type |
178+
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
179+
| 20240414 | - Add support for Elastic Load Balancer Health Checks.<br/>- EC2 Auto Scaling will start to detect and act on health checks performed by Elastic Load Balancing. |
179180
180181
## License
181182

terraform/aws/autoscale-gwlb/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ resource "aws_autoscaling_group" "asg" {
8484
max_size = var.maximum_group_size
8585
target_group_arns = var.target_groups
8686
vpc_zone_identifier = var.subnet_ids
87-
health_check_grace_period = 0
87+
health_check_grace_period = 3600
88+
health_check_type = "ELB"
8889

8990
tag {
9091
key = "Name"

terraform/aws/autoscale/README.md

+15-14
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,21 @@ secret_key = "my-secret-key"
176176
## Revision History
177177
In order to check the template version, please refer to [sk116585](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk116585)
178178
179-
| Template Version | Description |
180-
|------------------|--------------------------------------------------------------------|
181-
| 20200318 | First release of Check Point Auto Scaling Terraform module for AWS |
182-
| 20210309 | AWS Terraform modules refactor |
183-
| 20210329 | Stability fixes |
184-
| 20220606 | New instance type support |
185-
| 20221123 | R81.20 version support |
186-
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
187-
| 20230521 | Change default shell for the admin user to /etc/cli.sh |
188-
| 20230806 | Add support for c6in instance type |
189-
| 20230829 | Change default Check Point version to R81.20 |
190-
| 20230914 | Add support for maintenance mode password |
191-
| 20230923 | Add support for C5d instance type |
192-
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
179+
| Template Version | Description |
180+
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
181+
| 20200318 | First release of Check Point Auto Scaling Terraform module for AWS |
182+
| 20210309 | AWS Terraform modules refactor |
183+
| 20210329 | Stability fixes |
184+
| 20220606 | New instance type support |
185+
| 20221123 | R81.20 version support |
186+
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
187+
| 20230521 | Change default shell for the admin user to /etc/cli.sh |
188+
| 20230806 | Add support for c6in instance type |
189+
| 20230829 | Change default Check Point version to R81.20 |
190+
| 20230914 | Add support for maintenance mode password |
191+
| 20230923 | Add support for C5d instance type |
192+
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
193+
| 20240414 | - Add support for Elastic Load Balancer Health Checks.<br/>- EC2 Auto Scaling will start to detect and act on health checks performed by Elastic Load Balancing. |
193194
194195
## License
195196

terraform/aws/autoscale/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ resource "aws_autoscaling_group" "asg" {
8383
load_balancers = aws_elb.proxy_elb.*.name
8484
target_group_arns = var.target_groups
8585
vpc_zone_identifier = var.subnet_ids
86-
health_check_grace_period = 0
86+
health_check_grace_period = 3600
87+
health_check_type = "ELB"
8788

8889
tag {
8990
key = "Name"

terraform/aws/management/main.tf

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ resource "aws_security_group" "management_sg" {
3838
protocol = "tcp"
3939
cidr_blocks = [var.gateway_addresses]
4040
}
41+
ingress {
42+
from_port = 18208
43+
to_port = 18208
44+
protocol = "tcp"
45+
cidr_blocks = [var.gateway_addresses]
46+
}
4147
ingress {
4248
from_port = 18210
4349
to_port = 18210

terraform/aws/mds/main.tf

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ resource "aws_security_group" "mds_sg" {
4444
protocol = "tcp"
4545
cidr_blocks = [var.gateway_addresses]
4646
}
47+
ingress {
48+
from_port = 18208
49+
to_port = 18208
50+
protocol = "tcp"
51+
cidr_blocks = [var.gateway_addresses]
52+
}
4753
ingress {
4854
from_port = 18210
4955
to_port = 18210

0 commit comments

Comments
 (0)