AWS CodeCommmit repo as terraform module source

Is there any use cases where we can use private codecommit repository as terraform module source, where repo is not accessible through either https or shh?

How is it accessable if not via HTTP or SSH?

Hi stuart-c, may be codecommit::repo. There is a scenario like this, send a repository to artifacts and refer in the other repo, but not sure how do that

I’m assuming you are meaning codecommit://… using the git-remote-codecommit helper. If so that’s just HTTPS but with a nice wrapper to handle credentials for you.

You can use the HTTPS URL instead (see Connect to an AWS CodeCommit repository - AWS CodeCommit) making sure you provide the right credentials.

1 Like