Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#179] Fix: generated project can't be run #180

Merged
merged 1 commit into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/templates/aws/addons/alb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/bastion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/cloudwatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}`;
Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/ecr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/ecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/rds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const rdsVariablesContent = dedent`
}`;
const rdsModuleContent = dedent`
module "rds" {
source = "./modules/rds"
source = "../modules/rds"

namespace = var.namespace

Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const s3OutputsContent = dedent`

const s3ModuleContent = dedent`
module "s3" {
source = "./modules/s3"
source = "../modules/s3"

namespace = var.namespace
}`;
Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/securityGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/ssm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/templates/aws/addons/vpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const vpcOutputsContent = dedent`
}`;
const vpcModuleContent = dedent`
module "vpc" {
source = "./modules/vpc"
source = "../modules/vpc"

namespace = var.namespace
}`;
Expand Down