HI,
I have attempted to publish a module to my private registry in terraform cloud. I get a 500 internal server error, not sure what I am doing wrong. I attempted to use the API and remove terraform from the picture and I get the exact same response.
- I have onboarded GitHub as my VCS provider.
- I can publish the module manually using the Web UI.
- After onboarding the module using the web UI, I ran a terraform import and compared the state data with my terraform config and couldn’t find an issue.
Here is my very simple terraform I have used for testing, I have removed org names and redacted key data. I am aware having the token in code is not good practice, this is purely for POC purposes and will be removed in final design.
terraform {
required_providers {
tfe = {
version = "~>0.42.0"
}
}
}
provider "tfe" {
organization = "my-org"
token = "redacted"
}
data "tfe_oauth_client" "client" {
organization = "my-org"
name = "my-oauth-client"
}
resource "tfe_registry_module" "test-registry-module" {
vcs_repo {
display_identifier = "my-org-name/terraform-aws-test"
identifier = "my-org-name/terraform-aws-test"
oauth_token_id = tfe_oauth_client.client.oauth_token_id
}
}