From 7e35c5bff2f223bb77b757bed0d4f94c34fbdfa4 Mon Sep 17 00:00:00 2001 From: Nihisil Date: Wed, 29 Mar 2023 11:11:51 +0700 Subject: [PATCH] [#179] Fix path to generated modules --- src/templates/aws/addons/alb.ts | 2 +- src/templates/aws/addons/bastion.ts | 2 +- src/templates/aws/addons/cloudwatch.ts | 2 +- src/templates/aws/addons/ecr.ts | 2 +- src/templates/aws/addons/ecs.ts | 2 +- src/templates/aws/addons/rds.ts | 2 +- src/templates/aws/addons/s3.ts | 2 +- src/templates/aws/addons/securityGroup.ts | 2 +- src/templates/aws/addons/ssm.ts | 2 +- src/templates/aws/addons/vpc.ts | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/templates/aws/addons/alb.ts b/src/templates/aws/addons/alb.ts index fb6e3ea8..df171df5 100644 --- a/src/templates/aws/addons/alb.ts +++ b/src/templates/aws/addons/alb.ts @@ -33,7 +33,7 @@ const albVariablesContent = dedent` \n`; const albModuleContent = dedent` module "alb" { - source = "./modules/alb" + source = "../modules/alb" vpc_id = module.vpc.vpc_id namespace = var.namespace diff --git a/src/templates/aws/addons/bastion.ts b/src/templates/aws/addons/bastion.ts index 5c237d35..2dd03f01 100644 --- a/src/templates/aws/addons/bastion.ts +++ b/src/templates/aws/addons/bastion.ts @@ -34,7 +34,7 @@ const bastionVariablesContent = dedent` }`; const bastionModuleContent = dedent` module "bastion" { - source = "./modules/bastion" + source = "../modules/bastion" subnet_ids = module.vpc.public_subnet_ids instance_security_group_ids = module.security_group.bastion_security_group_ids diff --git a/src/templates/aws/addons/cloudwatch.ts b/src/templates/aws/addons/cloudwatch.ts index 1b37af3d..76571d16 100644 --- a/src/templates/aws/addons/cloudwatch.ts +++ b/src/templates/aws/addons/cloudwatch.ts @@ -6,7 +6,7 @@ import { INFRA_BASE_MAIN_PATH } from '../../core/constants'; const cloudwatchModuleContent = dedent` module "cloudwatch" { - source = "./modules/cloudwatch" + source = "../modules/cloudwatch" namespace = var.namespace }`; diff --git a/src/templates/aws/addons/ecr.ts b/src/templates/aws/addons/ecr.ts index d2612927..1c4e44f6 100644 --- a/src/templates/aws/addons/ecr.ts +++ b/src/templates/aws/addons/ecr.ts @@ -14,7 +14,7 @@ const ecrVariablesContent = dedent` }`; const ecrModuleContent = dedent` module "ecr" { - source = "./modules/ecr" + source = "../modules/ecr" namespace = var.namespace image_limit = var.image_limit diff --git a/src/templates/aws/addons/ecs.ts b/src/templates/aws/addons/ecs.ts index ffc1831c..e6b3e76d 100644 --- a/src/templates/aws/addons/ecs.ts +++ b/src/templates/aws/addons/ecs.ts @@ -62,7 +62,7 @@ const ecsVariablesContent = dedent` const ecsModuleContent = dedent` module "ecs" { - source = "./modules/ecs" + source = "../modules/ecs" subnets = module.vpc.private_subnet_ids namespace = var.namespace diff --git a/src/templates/aws/addons/rds.ts b/src/templates/aws/addons/rds.ts index e46fa650..874a53c5 100644 --- a/src/templates/aws/addons/rds.ts +++ b/src/templates/aws/addons/rds.ts @@ -39,7 +39,7 @@ const rdsVariablesContent = dedent` }`; const rdsModuleContent = dedent` module "rds" { - source = "./modules/rds" + source = "../modules/rds" namespace = var.namespace diff --git a/src/templates/aws/addons/s3.ts b/src/templates/aws/addons/s3.ts index 7485bcfa..68cec2c4 100644 --- a/src/templates/aws/addons/s3.ts +++ b/src/templates/aws/addons/s3.ts @@ -15,7 +15,7 @@ const s3OutputsContent = dedent` const s3ModuleContent = dedent` module "s3" { - source = "./modules/s3" + source = "../modules/s3" namespace = var.namespace }`; diff --git a/src/templates/aws/addons/securityGroup.ts b/src/templates/aws/addons/securityGroup.ts index 97ae4c75..03914984 100644 --- a/src/templates/aws/addons/securityGroup.ts +++ b/src/templates/aws/addons/securityGroup.ts @@ -13,7 +13,7 @@ const securityGroupVariablesContent = dedent` }`; const securityGroupModuleContent = dedent` module "security_group" { - source = "./modules/security_group" + source = "../modules/security_group" namespace = var.namespace vpc_id = module.vpc.vpc_id diff --git a/src/templates/aws/addons/ssm.ts b/src/templates/aws/addons/ssm.ts index 0cc66ac6..d07bc81b 100644 --- a/src/templates/aws/addons/ssm.ts +++ b/src/templates/aws/addons/ssm.ts @@ -18,7 +18,7 @@ const databaseUrlString = /* eslint-enable no-template-curly-in-string */ const ssmModuleContent = dedent` module "ssm" { - source = "./modules/ssm" + source = "../modules/ssm" namespace = var.namespace diff --git a/src/templates/aws/addons/vpc.ts b/src/templates/aws/addons/vpc.ts index 8de1cf27..1bd2883b 100644 --- a/src/templates/aws/addons/vpc.ts +++ b/src/templates/aws/addons/vpc.ts @@ -14,7 +14,7 @@ const vpcOutputsContent = dedent` }`; const vpcModuleContent = dedent` module "vpc" { - source = "./modules/vpc" + source = "../modules/vpc" namespace = var.namespace }`;