TF plan fails to download the modules which are present on another repository

Problem Statement

We have a scenario where as part of TF plan step we have to fetch/download module from another repository (same SCM account) but while doing so TF plan step fails with error access right error

Solution

For above case if you are using Git/BitBucket connector with SSH based credential in that case the same SSH key will be used to access the Module Source this can only happen if that SSH key have the permission to access module source repo.

In this case you have check this box Module Source to avoid access right issues or could not find repo issues

3 Likes