Open otola opened 9 months ago
If you're using separate modules and the org name isn't being sent, you need to follow the directions in our docs here:
You must add a
required_providers
block to every module that will create resources with this provider. If you do not explicitly requireintegrations/github
in a submodule, your terraform run may break in hard-to-troubleshoot ways.
Expected Behavior
The github_repository_file should have been created within the provided organisation repository. Interesrtingly in the debug logs I can see that the organisation name isn't being sent through in the request. The owner field seems to be ignored. When creating a direct github_repository_file resource without utilising a module this works without an issue.
Actual Behavior
Error received. Error: unexpected status code: 404 Not Found
Terraform Version
1.6.6
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
terraform plan
Debug Output
Panic Output
No response
Code of Conduct