collie-cli icon indicating copy to clipboard operation
collie-cli copied to clipboard

Couldn't be able to run collie foundation deploy due to an error in files hierarchy

Open ishabakeh opened this issue 3 years ago • 0 comments

"Call to function "find_in_parent_folders" failed: ParentFileNotFound: Could not find a platform.hcl in any of the parent folders"

Describe the bug I made my first kit as the step by step guid, but for deploying it I ran into some issues which says it couldn't find the module.hcl and platform.hcl files in the parent folders (you can find them under foundation//platform/)

Reach of the bug All the first-timers are impacted

Impact of the bug It prevents to actually deploy my modules into my target platform

To Reproduce Steps to reproduce the behavior: 1- git init my-foundation-kit 2- cd my-foundation-kit 3- collie init 4- collie foundation new my-foundation-dev 5- collie kit new "my-first-azure-module" 6- collie kit apply "my-first-azure-module" 7- collie foundation deploy my-foundation-dev

Expected behavior It should make a sub-folder with the name of my kit "my-first-azure-module" under the "platform/" then create the terragrunt.hcl file into this new folder. The tree should be look like this:

image

and the output of "collie kit tree" command: image

Desktop (please complete the following information):

  • OS: macOS Monterey
  • Version 12.5.1
  • Apple M1 chip

ishabakeh avatar Sep 09 '22 08:09 ishabakeh