cookiecutter icon indicating copy to clipboard operation
cookiecutter copied to clipboard

Support CodeCommit GRC

Open jabrennem opened this issue 4 years ago • 2 comments

  • Cookiecutter version: 1.7.2
  • Template project url:
  • Python version: 3.8
  • Operating System: Mac/Linux

Description:

I am not sure if there is already a way to do this, but I am simply trying to run cookie cutter on a git repo of mine that is stored in AWS CodeCommit.

pip install git-remote-codecommit
cookiecutter codecommit::{region}://cookiecutter-template-repo

What I've run:

I have run this command as below.

$ cookiecutter -v codecommit::{region}://cookiecutter-template-repo
DEBUG cookiecutter.config: User config not found. Loading default config.
A valid repository for "codecommit::{region}://cookiecutter-template-repo" could not be found in the following locations:
codecommit::{region}://cookiecutter-template-repo
/Users/{user_name}/.cookiecutters/codecommit::{region}://cookiecutter-template-repo

I looked into some of the source code, and it looks like the REPO_REGEX variable in repository.py only supports git, https, etc. I added codecommit::{region} and I encountered cookiecutter.exceptions.UnknownRepoType. I figured I would pass this along.

jabrennem avatar Sep 17 '20 19:09 jabrennem

May I ask you why you need to use git-remote-codecommit instead of a simple git clone?

SharpEdgeMarshall avatar May 03 '21 16:05 SharpEdgeMarshall

@SharpEdgeMarshall I also would like to see support for it as my current project relies on federated identities. Creating IAM users isn't permitted. Git SSH and/or HTTPS based authentication relies on IAM users. As an alternative you can use the codecommit plugin to allow role-based access.

For me as a workaround I can probably use git+codecommit without cookiecutter:

git clone codecommit::eu-central-1://cookiecutter-template-repo /tmp/some-uniq-id
cookiecutter /tmp/some-uniq-id/some-sub-folder ... 

e42sh avatar Oct 08 '21 12:10 e42sh

Hi @jabrennem @meckhardt @SharpEdgeMarshall

We started working on a new community fork of the Cookiecutter project, named Cookieninja. The fork is found at: https://github.com/cookieninja-generator/cookieninja

We have re-opened your issue at: https://github.com/cookieninja-generator/cookieninja/issues/39

We're trying to bring the life back to this amazing project. We are committed to addressing each issue in up to 1 week from the day it's opened. We'd really like you to join the fork, star it and contribute to it!

Thank you :)

yuvaldolev avatar Jan 11 '23 22:01 yuvaldolev

I'm closing this ticket because users can interact with VCS systems outside of cookiecutter.

kurtmckee avatar Nov 17 '23 14:11 kurtmckee