nimblehq / infrastructure-templates

For IaaS and PaaS as codes
MIT License
10 stars 0 forks source link

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

Closed Nihisil closed 1 year ago

Nihisil commented 1 year ago

What happened 👀

If we generate a project on the current develop branch, the generated projects cannot be initialized because of wrong paths to the modules.

It happens because we changed the project structure in previous PRs.

Proof Of Work 📹

The newly generated project now contains the correct paths to the modules.

Shared folder:

Initializing modules...

  • ecr in ../modules/ecr

Base folder:

Initializing modules...

  • alb in ../modules/alb
  • bastion in ../modules/bastion
  • cloudwatch in ../modules/cloudwatch
  • ecs in ../modules/ecs
  • rds in ../modules/rds Downloading registry.terraform.io/terraform-aws-modules/rds-aurora/aws 6.2.0 for rds.db...
  • rds.db in .terraform/modules/rds.db
  • s3 in ../modules/s3
  • security_group in ../modules/security_group
  • ssm in ../modules/ssm
  • vpc in ../modules/vpc Downloading registry.terraform.io/terraform-aws-modules/vpc/aws 3.0.0 for vpc.vpc...
  • vpc.vpc in .terraform/modules/vpc.vpc