diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..44dd389 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1733406821689 + + + + + + \ No newline at end of file diff --git a/modules/gateway-master/main.tf b/modules/gateway-master/main.tf index fac731f..15d1175 100644 --- a/modules/gateway-master/main.tf +++ b/modules/gateway-master/main.tf @@ -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 diff --git a/modules/gateway/main.tf b/modules/gateway/main.tf index 7b303f5..0447c73 100644 --- a/modules/gateway/main.tf +++ b/modules/gateway/main.tf @@ -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 @@ -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 @@ -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 ] @@ -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