Skip to content

Commit

Permalink
TF | add port and update health check
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-meravbe committed Apr 17, 2024
1 parent 2e1778c commit ecfaac8
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 28 deletions.
25 changes: 13 additions & 12 deletions terraform/aws/autoscale-gwlb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,19 @@ secret_key = "my-secret-key"
## Revision History
In order to check the template version, please refer to [sk116585](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk116585)
| Template Version | Description |
|------------------|---------------------------------------------------------------------------------------------------------------|
| 20220414 | First release of Check Point Auto Scaling GWLB Terraform module for AWS |
| 20220606 | New instance type support |
| 20221123 | R81.20 version support |
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
| 20230521 | - Change default shell for the admin user to /etc/cli.sh<br/>- Add description for reserved words in hostname |
| 20230806 | Add support for c6in instance type |
| 20230829 | Change default Check Point version to R81.20 |
| 20230914 | Add support for maintenance mode password |
| 20230923 | Add support for C5d instance type |
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
| Template Version | Description |
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 20220414 | First release of Check Point Auto Scaling GWLB Terraform module for AWS |
| 20220606 | New instance type support |
| 20221123 | R81.20 version support |
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
| 20230521 | - Change default shell for the admin user to /etc/cli.sh<br/>- Add description for reserved words in hostname |
| 20230806 | Add support for c6in instance type |
| 20230829 | Change default Check Point version to R81.20 |
| 20230914 | Add support for maintenance mode password |
| 20230923 | Add support for C5d instance type |
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
| 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. |
## License
Expand Down
3 changes: 2 additions & 1 deletion terraform/aws/autoscale-gwlb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ resource "aws_autoscaling_group" "asg" {
max_size = var.maximum_group_size
target_group_arns = var.target_groups
vpc_zone_identifier = var.subnet_ids
health_check_grace_period = 0
health_check_grace_period = 3600
health_check_type = "ELB"

tag {
key = "Name"
Expand Down
29 changes: 15 additions & 14 deletions terraform/aws/autoscale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,21 @@ secret_key = "my-secret-key"
## Revision History
In order to check the template version, please refer to [sk116585](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk116585)
| Template Version | Description |
|------------------|--------------------------------------------------------------------|
| 20200318 | First release of Check Point Auto Scaling Terraform module for AWS |
| 20210309 | AWS Terraform modules refactor |
| 20210329 | Stability fixes |
| 20220606 | New instance type support |
| 20221123 | R81.20 version support |
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
| 20230521 | Change default shell for the admin user to /etc/cli.sh |
| 20230806 | Add support for c6in instance type |
| 20230829 | Change default Check Point version to R81.20 |
| 20230914 | Add support for maintenance mode password |
| 20230923 | Add support for C5d instance type |
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
| Template Version | Description |
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 20200318 | First release of Check Point Auto Scaling Terraform module for AWS |
| 20210309 | AWS Terraform modules refactor |
| 20210329 | Stability fixes |
| 20220606 | New instance type support |
| 20221123 | R81.20 version support |
| 20221226 | Support ASG Launch Template instead of Launch Configuration |
| 20230521 | Change default shell for the admin user to /etc/cli.sh |
| 20230806 | Add support for c6in instance type |
| 20230829 | Change default Check Point version to R81.20 |
| 20230914 | Add support for maintenance mode password |
| 20230923 | Add support for C5d instance type |
| 20231012 | Update AWS Terraform provider version to 5.20.1 |
| 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. |
## License
Expand Down
3 changes: 2 additions & 1 deletion terraform/aws/autoscale/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ resource "aws_autoscaling_group" "asg" {
load_balancers = aws_elb.proxy_elb.*.name
target_group_arns = var.target_groups
vpc_zone_identifier = var.subnet_ids
health_check_grace_period = 0
health_check_grace_period = 3600
health_check_type = "ELB"

tag {
key = "Name"
Expand Down
6 changes: 6 additions & 0 deletions terraform/aws/management/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ resource "aws_security_group" "management_sg" {
protocol = "tcp"
cidr_blocks = [var.gateway_addresses]
}
ingress {
from_port = 18208
to_port = 18208
protocol = "tcp"
cidr_blocks = [var.gateway_addresses]
}
ingress {
from_port = 18210
to_port = 18210
Expand Down
6 changes: 6 additions & 0 deletions terraform/aws/mds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ resource "aws_security_group" "mds_sg" {
protocol = "tcp"
cidr_blocks = [var.gateway_addresses]
}
ingress {
from_port = 18208
to_port = 18208
protocol = "tcp"
cidr_blocks = [var.gateway_addresses]
}
ingress {
from_port = 18210
to_port = 18210
Expand Down

0 comments on commit ecfaac8

Please sign in to comment.