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 |
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>
}
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.