Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Requirements

Name Version
github >= 4.3.0
google >= 4.28.0
random ~> 2.2

Providers

Name Version
github >= 4.3.0
google >= 4.28.0
random ~> 2.2

Inputs

Name Description Type Default Required
app_name Name of the application for which the trigger is being created. string n/a yes
infra_repo_name Name of the infra repo. string n/a yes
project_id Id of the application admin project. string n/a yes
project_number Project number of the application admin project. number n/a yes
service_account Service Account to associate Cloud Build trigger with. string n/a yes

Usage

module "infra-web-hook" {
  source          = "git::https://github.com/YOUR_GITHUB_ORG/terraform-modules//webhooks/iac"
  app_name        = "my-app"
  project_number  = 123456789
  infra_repo_name = "my-app-infra"
  project_id      = <Project Id>
  service_account = <Service Account>
}

Workflow

While creating an application via Application Factory, if the IaC trigger type for an application is chosen to be webhook trigger, this module is called by github-infra-repo module which is invoked from app-name.tf files in Application Factory repo for each application. This module creates a webhook trigger connected to the infrastructure repo of the application.