Home > Mobile >  How to call a terraform module in another GitHub repository
How to call a terraform module in another GitHub repository

Time:01-27

I want to reference terraform module in https://github.com/identity/terraform-aws-github-oidc-provider repository from my repo identity/identity-iam-global-terraform to create some resources in AWS.Please how will source parameter look like? both repo belong to the same organization

CodePudding user response:

You can reference: https://www.terraform.io/language/modules/sources#github

I've used this successfully in some of my config;

module "idc-provider" {
  source = "[email protected]:identity/terraform-aws-github-oidc-provider"
}
  •  Tags:  
  • Related