aws / aws-sam-cli

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
https://aws.amazon.com/serverless/sam/
Apache License 2.0
6.51k stars 1.17k forks source link

Cookiecutters in directories #2370

Closed billyshambrook closed 1 year ago

billyshambrook commented 3 years ago

Describe your idea/feature/enhancement

Cookiecutter project released a new feature in v1.7 which introduces the ability to organize several templates in one repository or zip file, separating them by directories.

When using the cookie-cutter CLI this requires passing the --directory option.

See more information about the feature here https://cookiecutter.readthedocs.io/en/1.7.2/advanced/directories.html

We would like to start organizing our various internal cookie-cutter repos into one using this new feature however this can't be used with AWS SAM as the additional --directory option is not available through AWS SAM CLI.

Proposal

I propose exposing a new --directory option in the sam init CLI.

c2tarun commented 2 years ago

Thanks for raising this feature request. There are other interesting changes in discussion for init at #3555. We can probably batch this change there. Linking them so that this don't get dropped.

jfuss commented 1 year ago

Closing as duplicate of https://github.com/aws/aws-sam-cli/issues/3555

github-actions[bot] commented 1 year ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.