Skip to content

Commit

Permalink
/modules deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-guybarak committed Dec 12, 2024
1 parent be6fb5e commit dff109d
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 7 deletions.
76 changes: 76 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/gateway-master/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// --- VPC ---
module "launch_vpc" {
source = "../modules/vpc"
source = "../vpc"

vpc_cidr = var.vpc_cidr
public_subnets_map = var.public_subnets_map
Expand Down
12 changes: 6 additions & 6 deletions modules/gateway/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module "amis" {
source = "../modules/amis"
source = "../amis"

version_license = var.gateway_version
chkp_type = "gateway"
}

module "common_permissive_sg" {
source = "../modules/common/permissive_sg"
source = "../common/permissive_sg"

vpc_id = var.vpc_id
resources_tag_name = var.resources_tag_name
Expand Down Expand Up @@ -38,7 +38,7 @@ data "aws_iam_policy_document" "gateway_role_assume_policy_document" {
}

module "attach_cloudwatch_policy" {
source = "../modules/cloudwatch-policy"
source = "../cloudwatch-policy"
count = local.enable_cloudwatch_policy
role = aws_iam_role.gateway_iam_role[count.index].name
tag_name = var.resources_tag_name != "" ? var.resources_tag_name : var.gateway_name
Expand All @@ -62,7 +62,7 @@ resource "aws_network_interface" "private_eni" {
}

module "common_eip" {
source = "../modules/common/elastic_ip"
source = "../common/elastic_ip"
depends_on = [
module.common_gateway_instance
]
Expand All @@ -73,14 +73,14 @@ module "common_eip" {
}

module "common_internal_default_route" {
source = "../modules/common/internal_default_route"
source = "../common/internal_default_route"

private_route_table = var.private_route_table
internal_eni_id = aws_network_interface.private_eni.id
}

module "common_gateway_instance" {
source = "../modules/common/gateway_instance"
source = "../common/gateway_instance"

external_eni_id = aws_network_interface.public_eni.id
internal_eni_id = aws_network_interface.private_eni.id
Expand Down

0 comments on commit dff109d

Please sign in to comment.